-
-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It already HTML-escapes characteres #73
Comments
Here is a spec that asserts it already HTML-escapes characters: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Context
We are using the latest
flutie
gem in our Rails 6.1.5 app with the following code:app/views/pages/show.html.erb
app/views/layouts/application.html.erb
Issue
For titles that contain characters that need to be HTML-escaped, we've noticed them being double-HTML-escaped.
For example, for the title
Page & "Title"
we getwhich causes the browser to display it as
Instead, we expected to get
which displays as expected
Workaround
We can replace
<%= page_title %>
with<%== page_title %>
or<%= raw page_title %>
to work around it.The text was updated successfully, but these errors were encountered: