module ERB::Util
def unwrapped_html_escape(s) # :nodoc:
This method is not for public consumption! Seriously!
HTML escapes strings but doesn't wrap them with an ActiveSupport::SafeBuffer.
def unwrapped_html_escape(s) # :nodoc: s = s.to_s if s.html_safe? s else CGI.escapeHTML(ActiveSupport::Multibyte::Unicode.tidy_bytes(s)) end end