module Haml::Helpers::XssMods

def surround_with_haml_xss(front, back = front, &block)

Input is escaped, output is always HTML safe
def surround_with_haml_xss(front, back = front, &block)
  Haml::Util.html_safe(
    surround_without_haml_xss(
      haml_xss_html_escape(front),
      haml_xss_html_escape(back),
      &block))
end