php-xml-htmlsax3

SAX parser for HTML and other badly formed XML documents
  https://pear.php.net/package/XML_HTMLSax3/
  0
  no reviews



Php-xml-htmlsax3 provides an API very similar to the native PHP XML extension (https://www.php.net/xml), allowing handlers using one to be easily adapted to the other.

The key difference is php-xml-htmlsax3 will not break on badly formed XML, allowing it to be used for parsing HTML documents.