module Haml::Helpers
def html_escape(text)
-
(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
(String)
- The sanitized string
text
(String
)
-- The string to sanitize
def html_escape(text) text = text.to_s text.gsub(HTML_ESCAPE_REGEX, HTML_ESCAPE) end