Method: Nokogiri::HTML.parse

Defined in:
lib/nokogiri/html.rb

.parse(thing, url = nil, encoding = nil, options = XML::ParseOptions::DEFAULT_HTML, &block) ⇒ Object

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



23
24
25
# File 'lib/nokogiri/html.rb', line 23

def parse thing, url = nil, encoding = nil, options = XML::ParseOptions::DEFAULT_HTML, &block
  Document.parse(thing, url, encoding, options, &block)
end