Method: Nokogiri::XML::DocumentFragment#to_html

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

#to_html(*args) ⇒ Object

Convert this DocumentFragment to html See Nokogiri::XML::NodeSet#to_html



73
74
75
76
77
78
79
80
# File 'lib/nokogiri/xml/document_fragment.rb', line 73

def to_html(*args)
  if Nokogiri.jruby?
    options = args.first.is_a?(Hash) ? args.shift : {}
    options[:save_with] ||= Node::SaveOptions::DEFAULT_HTML
    args.insert(0, options)
  end
  children.to_html(*args)
end