Method: Nokogiri::XML::Node#to_html

Defined in:
lib/nokogiri/xml/node.rb

#to_html(options = {}) ⇒ Object

Serialize this Node to HTML

doc.to_html

See Node#write_to for a list of options. For formatted output, use Node#to_xhtml instead.



710
711
712
# File 'lib/nokogiri/xml/node.rb', line 710

def to_html options = {}
  to_format SaveOptions::DEFAULT_HTML, options
end