class Nokogiri::XML::Node
def to_html options = {}
See Node#write_to for a list of +options+. For formatted output,
doc.to_html
Serialize this Node to HTML
##
def to_html options = {} # FIXME: this is a hack around broken libxml versions return dump_html if Nokogiri.uses_libxml? && %w[2 6] === LIBXML_VERSION.split('.')[0..1] options[:save_with] ||= SaveOptions::FORMAT | SaveOptions::NO_DECLARATION | SaveOptions::NO_EMPTY_TAGS | SaveOptions::AS_HTML serialize(options) end