module Haml::Helpers

def html_escape(text)

Returns:
  • (String) - The sanitized string

Parameters:
  • text (String) -- The string to sanitize
def html_escape(text)
  text = text.to_s
  text.gsub(HTML_ESCAPE_REGEX, HTML_ESCAPE)
end