class Nokogiri::XML::NodeSet

def to_html(*args)

Experimental RBS support (using type sampling data from the type_fusion project).

def to_html: (*Array[Hash, encoding, String] args) -> untyped

This signature was generated using 1 sample from 1 application.

Convert this NodeSet to HTML
##
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
  if empty?
    encoding = (args.first.is_a?(Hash) ? args.first[:encoding] : nil)
    encoding ||= document.encoding
    encoding.nil? ? "" : "".encode(encoding)
  else
    map { |x| x.to_html(*args) }.join
  end
end