Nokogiri lets you write a SAX parser to process HTML but get HTML correction features.

See Nokogiri::HTML::SAX::Parser for a basic example of using a SAX parser with HTML.

For more information on SAX parsers, see Nokogiri::XML::SAX

Namespace