php-html-parser icon indicating copy to clipboard operation
php-html-parser copied to clipboard

Bad parsing with "<" char in p

Open tmkook opened this issue 3 years ago • 1 comments

<div>
<p>line1</p>
<p>line2  :< cannot be parsed line 3</p>
<p>line3</p>
</div>

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

tmkook avatar Jul 07 '21 14:07 tmkook

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

jackmcdade avatar Aug 17 '21 15:08 jackmcdade