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