module Haml::Helpers

def escape_once(text)

that is already part of an escaped entity.
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