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

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -