advanced_html_dom
advanced_html_dom copied to clipboard
A better drop-in replacement for PHP's simple html dom
Please make a more documentation
Does not support utf8 encoding and returns them in the form of unspecified characters. This is required for some special characters, Arabic, Persian
`address h2 :not(a)` This selector is valid but the script can't decode-it ``` ErrorException : DOMXPath::query(): Invalid expression at /var/www/html/test/vendor/hrmatching/advanced_html_dom/advanced_html_dom.php:56 52| public function find($css, $index = null){ 53| $xpath =...
Line 3 of the php file reads: Website: http://sourceforge.net/projects/advancedhtmldom/ Maybe time to update to Website: https://github.com/monkeysuffrage/advanced_html_dom/ :)
advanced_html_dom.php in the current version has the same version number, 0.0.11, as did the version current in 2016.
This library has a memory leak by design, see note [http://php.net/manual/en/language.oop5.decon.php#105368] I have been to be able to get a workaround at least temporary explicit calling a "destruct" method on...
The library doesn't seem to work with codepages other than utf8. For instance, in a greek blogger page (for instance "https://ippokrateio-miterakaipaidi.blogspot.gr/2017/09/blog-post.html"), `$text = $html->find($text_container); echo $text;` returns ```ΠΡÎ?ΤÎ?Î?Î?Î?Î?Î?Î?Î? Î...
Currently using simple html dom and I was under the impression that only 2 changes were necessary: 1) replace simple_html_dom.php contents with those from advanced_html_dom.php 2) change `$html = new...
This code ``` $html = str_get_html(''); var_dump(count(array_slice($html->find('tr'),0,1))); ``` with advanced_html_dom.php 0.0.11 fails: ``` Warning: array_slice() expects parameter 1 to be array, object given ``` whereas with 2016-12-11 simple_html_dom.php (1.5 ($Rev:...
This code ``` $html = str_get_html('1 23'); var_dump($html->find('tr',0)->text()); ``` on advanced_html_dom.php 0.0.11 outputs ``` string(4) "1 2" ``` whereas for compatibility with simple_html_dom.php (e.g. 1.5 ($Rev: 196 $)) it should...