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

PHP Simple HTML DOM Parser adaptation for Composer and PSR-0

Results 53 php-simple-html-dom-parser issues
Sort by recently updated
recently updated
newest added

Here is an updated package for this library: composer require caophihung94/php-simple-html-dom-parser

I was having trouble loading the string with the HTML code by the function: `HtmlDomParser::str_get_html($file_name);`

`find` method cannot find tag that has additional classes. For example, I want to find all tags that have 'services' class: `` or `` or `` But, If I run:...

As far as I can determine, Simple HTML DOM does not have a way to actually remove DOM elements from a document. This can be troublesome, especially if you're using...

Due to the breaking change the regular expressions don't work anymore. Also, since PHP 7.1 it is possible to interpret negative offset. Check: https://stackoverflow.com/questions/24764212/preg-match-compilation-failed-invalid-range-in-character-class-at-offset https://stackoverflow.com/questions/47214416/dont-parse-simple-html-dom-on-php-7-1 https://sourceforge.net/p/simplehtmldom/bugs/161/ This commit fixes those...

This changes fix the php 7.3 bug, in preg_mach function. fix preg_match(): Compilation failed: invalid range in character class at offset 4 #line 1378 fix preg_match(): Compilation failed: invalid range...

If you use php 7.3 and higher, then use my edits. Otherwise, you will get errors due to migration to PCRE2 in new versions of PHP. For example: Warning: preg_match_all...

Reproduce with: php php-cs-fixer --rules=native_function_invocation fix ./ --allow-risky=yes (php-cs-fixer from : https://cs.symfony.com/) Details: https://veewee.github.io/blog/optimizing-php-performance-by-fq-function-calls/

My class like this ``` public function LayHinhTuDong9GagAction($id="aP9QwYV%2CaRjvbnq%2CaOB9wDy") { $client = new \GuzzleHttp\Client(); $res = $client->request('GET', 'https://9gag.com/?id='.$id.'&c=10', [ 'headers' => [ 'referer'=>'https://9gag.com/', 'x-requested-with'=>'XMLHttpRequest', 'method'=>'GET', 'authority'=>'9gag.com', 'path'=>'/?id=aP9QwYV%2CaRjvbnq%2CaOB9wDy&c=10', 'scheme'=>'https', 'accept'=>'application/json, text/javascript, */*;...