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