module Nokogiri::HTML

@note This module/namespace is an alias for {Nokogiri::HTML4} as of v1.12.0. Before v1.12.0,

{Nokogiri::HTML4} did not exist, and this was the module/namespace for all HTML-related
classes.

@since v1.12.0 @note Before v1.12.0, {Nokogiri::HTML4} did not exist, and {Nokogiri::HTML} was the module/namespace for parsing HTML.

Constants

NamedCharacters

Instance of Nokogiri::HTML4::EntityLookup

Public Class Methods

fragment(string, encoding = nil) click to toggle source

Parse a fragment from string in to a NodeSet.

# File lib/nokogiri/html4.rb, line 23
def fragment(string, encoding = nil)
  HTML4::DocumentFragment.parse(string, encoding)
end
parse(input, url = nil, encoding = nil, options = XML::ParseOptions::DEFAULT_HTML, &block) click to toggle source

Parse HTML. Convenience method for Nokogiri::HTML4::Document.parse

# File lib/nokogiri/html4.rb, line 17
def parse(input, url = nil, encoding = nil, options = XML::ParseOptions::DEFAULT_HTML, &block)
  Document.parse(input, url, encoding, options, &block)
end