Class HTML::HTMLParser
In: lib/html/htmlparser.rb
Parent: SGMLParser

(X)HTML parser.

Parses a String and returns an REXML::Document with the (X)HTML content.

For example:

  html = "<p>paragraph</p>"
  parser = HTMLParser.new(html)
  puts parser.document

Requires a patched version of SGMLParser.

Methods

Attributes

document  [R] 

Public Class methods

Public Instance methods

[Validate]