pquery
pquery copied to clipboard
A jQuery like html dom parser written php.
Pquery dosen't work with mb_* functions or mbstring.func_overload = 2 php.ini param
The most important commit [88bd078](https://github.com/tburry/pquery/commit/88bd07834aac4e8bc9bc2fbe481caea85a57afec) give the parser a big performance boost. I've tested this with PHP 7.1.12 on some html files (size ~5kb), the parsing time decreases from ~4...
Hello, I'm parsing some game reports, and players can choose their own name. (here it's **query('td') as $td) { var_dump($td->text()); } ``` Results: ``` string(7) "1,52429" string(5) "1,524" string(2) "29"...
Fatal error: Class 'pQueryTestCase' not found in /var/www/public/pquery/tests/BasicTest.php on line 3 Im not being able to load your classes, i've used composer but maybe im doing something wrong or messing...
When adding sanitized strings to attributes Pquery's output can break form element because it converted encodes strings back to the character values of those. Proof of concept: ``` require_once('pquery/load_pquery.php'); $domObj...
Do you have any plans to implement jQuery's dom traversal methods? http://api.jquery.com/category/traversing/ It would be very helpful... :) If you will implement it, I suggest to make a separate interface...
For several hours I thought I might be going crazy, and then I realized pQuery is die-ing/exit-ing under some unknown conditions while executing parseStr(). About 1 in 5 times (a...
Some deprecations errors is occurring on PHP 8 ``` Deprecated: Return type of pQuery::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to...