W3cubDocs

/Nokogiri

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) Show source
# 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 a fragment from string in to a NodeSet.

parse(input, url = nil, encoding = nil, options = XML::ParseOptions::DEFAULT_HTML, &block) Show source
# 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

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

© 2008–2018 Aaron Patterson, Mike Dalessio, Charles Nutter, Sergio Arbeo,
Patrick Mahoney, Yoko Harada, Akinori MUSHA, John Shahid, Lars Kanis
Licensed under the MIT License.
https://nokogiri.org/rdoc/Nokogiri/HTML4.html