class Nokogiri::HTML4::DocumentFragment

def self.parse(tags, encoding = nil, options = XML::ParseOptions::DEFAULT_HTML, &block)

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

def self.parse: (String tags, ?String encoding, ?Integer options, ) -> Nokogiri::HTML4::DocumentFragment

This signature was generated using 1 sample from 1 application.

Create a Nokogiri::XML::DocumentFragment from +tags+, using +encoding+
###
def self.parse(tags, encoding = nil, options = XML::ParseOptions::DEFAULT_HTML, &block)
  doc = HTML4::Document.new
  encoding ||= if tags.respond_to?(:encoding)
    encoding = tags.encoding
    if encoding == ::Encoding::ASCII_8BIT
      "UTF-8"
    else
      encoding.name
    end
  else
    "UTF-8"
  end
  doc.encoding = encoding
  new(doc, tags, nil, options, &block)
end