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
<% content_for :page_title, @page.title %>
app/views/layouts/application.html.erb
<title><%= page_title %></title>
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 get
<title>App : Page &amp; &quot;Title&quot;</title>
which causes the browser to display it as

Instead, we expected to get
<title>App : Page & "Title"</title>
which displays as expected

Workaround
We can replace <%= page_title %> with <%== page_title %> or <%= raw page_title %> to work around it.
Context
We are using the latest
flutiegem in our Rails 6.1.5 app with the following code:app/views/pages/show.html.erbapp/views/layouts/application.html.erbIssue
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.