Methods

Instance Public methods

create_element(tag_name, attributes = {})

📝 Source code
# File actiontext/lib/action_text/html_conversion.rb, line 17
    def create_element(tag_name, attributes = {})
      document.create_element(tag_name, attributes)
    end
🔎 See on GitHub

fragment_for_html(html)

📝 Source code
# File actiontext/lib/action_text/html_conversion.rb, line 13
    def fragment_for_html(html)
      document.fragment(html)
    end
🔎 See on GitHub

node_to_html(node)

📝 Source code
# File actiontext/lib/action_text/html_conversion.rb, line 9
    def node_to_html(node)
      node.to_html(save_with: Nokogiri::XML::Node::SaveOptions::AS_HTML)
    end
🔎 See on GitHub