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
# 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–2023 by Mike Dalessio, Aaron Patterson, Yoko Harada, Akinori MUSHA, John Shahid,
Karol Bucek, Sam Ruby, Craig Barnes, Stephen Checkoway, Lars Kanis, Sergio Arbeo,
Timothy Elliott, Nobuyoshi Nakada, Charles Nutter, Patrick MahoneyLicensed under the MIT License.
https://nokogiri.org/rdoc/Nokogiri/HTML4.html