What's a simple workaround for this bug in PHP Simple HTML DOM Parser 1.5? -
can suggest simple code (not data) workaround bug in php simple html dom parser 1.5?
$html = str_get_html('<html><body><table><tr><td><td><tr><td><td></body></html>'); $r=$html->find('tr',0); echo count($r->find('td')); // expected: 2 ; observed: 4 [code using $r]
edit: issue occurs added
</table>
(^ workaround site's misinterpretation of string inline).
edit: find advanced html dom fixes problem not compatible replacement. see incomatible how workaround php advanced html dom's conversion of entities?
the simplest workaround switch this library fixes issue , lots of other ones.
Comments
Post a Comment