Incorrect parsing
6562680 opened this issue · 0 comments
6562680 commented
$html = '<a href="#">text (text < ...)</a>'; // i guess from server i receive not `<` but `<` cus of developer hadn't escaped output, and it will cause fail or inside children pointer or inside text node
Parsed to:
strval($dom); // '<a href="#">text (text </a>'
Seems good if just trim invalid symbol, but my parser returns "->nextChild()" not found.