Class: Oga::HTML::SaxParser

Inherits:
XML::SaxParser show all
Defined in:
lib/oga/html/sax_parser.rb

Overview

SAX parser for HTML documents. See the documentation of XML::SaxParser for more information.

Instance Method Summary collapse

Methods inherited from XML::SaxParser

#after_element, #on_element, #run_callback

Constructor Details

#initialize(handler, data, options = {}) ⇒ SaxParser

Returns a new instance of SaxParser

See Also:

  • Oga::HTML::SaxParser.[Oga[Oga::XML[Oga::XML::SaxParser[Oga::XML::SaxParser#initialize]

11
12
13
14
15
# File 'lib/oga/html/sax_parser.rb', line 11

def initialize(handler, data, options = {})
  options = options.merge(:html => true)

  super(handler, data, options)
end