php-html-parser
php-html-parser copied to clipboard
An HTML DOM parser. It allows you to manipulate HTML. Find tags on an HTML page with selectors just like jQuery.
This updates the method names in the Options section of the readme file to reflect the actual names being used.
I have some issues with script timeouts using this library. PHP Version => 7.4.10 paquettg/php-html-parser => 3.1.0 I have basic script: ``` use PHPHtmlParser\Dom; $dom = new Dom; $dom->loadFromUrl('http://www.google.com'); $links...
Hello, Is it possible to get the line in the dom of an element ? Thank you
when the option "cleanupInput" is set to "false", then the option "preserveLineBreaks" gets ignored. i fixed this by just copying out the lines: ``` // clean out the \n\r $replace...
Hi, is possible find a node by it's text content? thanks
It would be great if it was possible to append a sibling tag, like this: ``` $blocks = $dom->find('.test'); foreach ($blocks as $index => $block) { $tag = new Tag('This...
Similiar to this questen here: ``` Lorum ipsum click here dolores lorem. Lorum ipsum click here too dolores lorem. ``` to this: ``` Lorum ipsum click here dolores lorem. Lorum...
I am loading a twig template and modifying the html. I can modify the html but it breaks the twig string. After i load the .twig file whith loadFromFile() this...
Is there way to query multiple tag at once. I am trying following but doesnot seem to be working. `$pTags = $dom -> find('p,span');`