module Nokogiri::HTML4

💡 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

💡 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, options = XML::ParseOptions::DEFAULT_HTML, &block) click to toggle source

Parse a fragment from string in to a NodeSet.

# File lib/nokogiri/html4.rb, line 29
def fragment(string, encoding = nil, options = XML::ParseOptions::DEFAULT_HTML, &block)
  HTML4::DocumentFragment.parse(string, encoding, options, &block)
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 23
def parse(input, url = nil, encoding = nil, options = XML::ParseOptions::DEFAULT_HTML, &block)
  Document.parse(input, url, encoding, options, &block)
end