php-html-parser icon indicating copy to clipboard operation
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.

Results 75 php-html-parser issues
Sort by recently updated
recently updated
newest added

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...

bug

Hello, is there a way to know if there is unclosed tag ? Thank you

enhancement

Hello, Is it possible to get the line in the dom of an element ? Thank you

enhancement

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...

question

Hi, is possible find a node by it's text content? thanks

enhancement
question

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...

enhancement

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...

Documentation

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...

enhancement

Is there way to query multiple tag at once. I am trying following but doesnot seem to be working. `$pTags = $dom -> find('p,span');`

enhancement
question