module ActionView::Helpers::FormHelper

def form_for_with_haml(object_name, *args, &proc)

def form_for_with_haml(object_name, *args, &proc)
  wrap_block = block_given? && is_haml? && block_is_haml?(proc)
  if wrap_block
    oldproc = proc
    proc = proc {|*subargs| with_tabs(1) {oldproc.call(*subargs)}}
  end
  res = form_for_without_haml(object_name, *args, &proc)
  res << "\n" if wrap_block
  res
end

def form_for_with_haml_xss(*args, &block)

def form_for_with_haml_xss(*args, &block)
  res = form_for_without_haml_xss(*args, &block)
  return Haml::Util.html_safe(res) if res.is_a?(String)
  return res
end

def text_area_with_haml(*args)

def text_area_with_haml(*args)
  text_area_without_haml(*args).sub('>&#x000A;', ">\n").html_safe
end