module ActionText::HtmlConversion

def create_element(tag_name, attributes = {})

def create_element(tag_name, attributes = {})
  document.create_element(tag_name, attributes)
end

def document

def document
  ActionText.html_document_class.new.tap { |doc| doc.encoding = "UTF-8" }
end

def fragment_for_html(html)

def fragment_for_html(html)
  document.fragment(html)
end

def node_to_html(node)

def node_to_html(node)
  node.to_html(save_with: Nokogiri::XML::Node::SaveOptions::AS_HTML)
end