module Haml::Helpers::ActionViewMods

def output_buffer=(new_buffer)

def output_buffer=(new_buffer)
  if is_haml?
    if Haml::Util.rails_xss_safe? && new_buffer.is_a?(ActiveSupport::SafeBuffer)
      new_buffer = String.new(new_buffer)
    end
    haml_buffer.buffer = new_buffer
  else
    super
  end
end