# 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.to_s.gsub(/&/, "&").gsub(/\"/, """).gsub(/>/, ">").gsub(/</, "<").html_safe end end