module Haml::Helpers
def html_escape(text)
-
(String)- The sanitized string
Parameters:
-
text(String) -- The string to sanitize
def html_escape(text) Haml::Util.silence_warnings {text.to_s.gsub(/[\"><&]/n) {|s| HTML_ESCAPE[s]}} end