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.



1307
1308
1309
# File 'lib/nokogiri/xml/node.rb', line 1307

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