aea8849821
This method previously maintained the `html_safe?` property of a string on the return value. Because this string has been escaped, however, not marking it as `html_safe` causes entities to be double-escaped. As an example, take this view snippet: ```html <p><%= html_escape_once("this & that & the other") %></p> ``` Before this change, that would be double-escaped and render as: ```html <p>this &amp; that &amp; the other</p> ``` After this change, it renders correctly as: ```html <p>this & that & the other</p> ``` [Fix #48256] |
||
---|---|---|
.. | ||
active_support | ||
active_support.rb |