We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e31d29f commit 5b8b417Copy full SHA for 5b8b417
actionpack/lib/action_view/helpers/tag_helper.rb
@@ -99,7 +99,7 @@ def cdata_section(content)
99
# escape_once("<< Accept & Checkout")
100
# # => "<< Accept & Checkout"
101
def escape_once(html)
102
- html.to_s.gsub(/[\"><]|&(?!([a-zA-Z]+|(#\d+));)/) { |special| ERB::Util::HTML_ESCAPE[special] }
+ ActiveSupport::Multibyte.clean(html.to_s).gsub(/[\"><]|&(?!([a-zA-Z]+|(#\d+));)/) { |special| ERB::Util::HTML_ESCAPE[special] }
103
end
104
105
private
0 commit comments