Class Nokogiri::HTML::Document
In: lib/nokogiri/ffi/html/document.rb
lib/nokogiri/html/document.rb
ext/nokogiri/html_document.c
Parent: XML::Document

Methods

Public Class methods

Create a new document

Parse HTML. thing may be a String, or any object that responds to read and close such as an IO, or StringIO. url is resource where this document is located. encoding is the encoding that should be used when processing the document. options is a number that sets options in the parser, such as Nokogiri::XML::PARSE_RECOVER. See the constants in Nokogiri::XML.

Read the HTML document from io with given url, encoding, and options. See Nokogiri::HTML.parse

Read the HTML document contained in string with given url, encoding, and options. See Nokogiri::HTML.parse

Public Instance methods

Get the meta tag encoding for this document.

Set the meta tag encoding for this document.

Serialize this Document with encoding using options

The type for this document

[Validate]