module Haml::Helpers
def escape_once(text)
Escapes HTML entities in text, but without escaping an ampersand
def escape_once(text) text.to_s.gsub(/[\"><]|&(?!([a-zA-Z]+|(#\d+));)/) { |s| HTML_ESCAPE[s] } end
def escape_once(text) text.to_s.gsub(/[\"><]|&(?!([a-zA-Z]+|(#\d+));)/) { |s| HTML_ESCAPE[s] } end