# File lib/active_support/core_ext/string/output_safety.rb, line 19 def html_escape(s) s = s.to_s if s.html_safe? s else s.gsub(/[&"'><]/, HTML_ESCAPE).html_safe end end