paquettg / php-html-parser

An HTML DOM parser. It allows you to manipulate HTML. Find tags on an HTML page with selectors just like jQuery.
MIT License
2.36k stars 460 forks source link

Bad parsing with "<" char in p #281

Open tmkook opened 3 years ago

tmkook commented 3 years ago
<div>
<p>line1</p>
<p>line2  :< cannot be parsed line 3</p>
<p>line3</p>
</div>

$dom->find('div p'); echo count($dom);

jackmcdade commented 3 years ago

Running into this too – if there's a < gte in the content that's not an HTML element, it dies.