class Oga::HTML::Parser
Parser
for processing HTML
input. This parser is a small wrapper around {Oga::XML::Parser} and takes care of setting the various options required for parsing HTML
documents.
A basic example:
Oga::HTML::Parser.new('<meta charset="utf-8">').parse
Public Class Methods
new(data, options = {})
click to toggle source
@param [String|IO] data @param [Hash] options @see [Oga::XML::Parser#initialize]
Calls superclass method
# File lib/oga/html/parser.rb, line 14 def initialize(data, options = {}) options = options.merge(:html => true) super(data, options) end