In a rails 5.2.3 erb template:
<% input = "<script>alert('XSS')</script>" %>
<p><%= input %></p>
is showing <script>alert('XSS')</script>
instead of >.. etc
Isn't <%= ... %> supposed to prevent against reflected xss attack? Same issue if input is retrieved from params[:input]
The raw is output in the html: