module Haml::Helpers

def html_escape(text)

escaped into HTML entities.
Returns a copy of text with ampersands, angle brackets and quotes
def html_escape(text)
  text.to_s.gsub(/[\"><&]/) { |s| HTML_ESCAPE[s] }
end