module ActionView::Helpers::TagHelper
def content_tag_with_haml(name, *args, &block)
def content_tag_with_haml(name, *args, &block) return content_tag_without_haml(name, *args, &block) unless is_haml? preserve = haml_buffer.options.fetch(:preserve, DEFAULT_PRESERVE_OPTIONS).include?(name.to_s) if block_given? && block_is_haml?(block) && preserve return content_tag_without_haml(name, *args) do haml_buffer.fix_textareas!(Haml::Helpers.preserve(&block)).html_safe end end content = content_tag_without_haml(name, *args, &block) if preserve && content content = haml_buffer.fix_textareas!(Haml::Helpers.preserve(content)).html_safe end content end