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
© 2008–2018 Aaron Patterson, Mike Dalessio, Charles Nutter, Sergio Arbeo,
Patrick Mahoney, Yoko Harada, Akinori Musha, John Shahid, Lars Kanis
Licensed under the MIT License.