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

``` line1 line2 :< cannot be parsed line 3 line3 ``` $dom->find('div p'); echo count($dom);

The HTML cleaner converts the input to a specified encoding before any other operations: https://github.com/paquettg/php-html-parser/blob/4e01a438ad5961cc2d7427eb9798d213c8a12629/src/PHPHtmlParser/Dom/Cleaner.php#L128 The problem I see here is that according to [the documentation](https://www.php.net/manual/en/function.mb-convert-encoding.php) it uses the internal...

When I want to scrap amazon.com products list, instead of list it returns captcha form? Is it possible to bypass amazon bot detection system?

Hello, I use PHP8 with xampp on windows and i have installed library with composer! this line give me an error on VScode "use PHPHtmlParser\Dom;" = unknow

I'm not sure whether I'm simply not doing this right – hopefully there is an easy fix :-) I'm using PHPHtmlParser to grab all the images on a page and...

Hi, First of all, great project! It's super easy to use and works brilliantly. It really made my life easier. Is it possible to replace an element with another one?...

enhancement

Hi! I'm working on a WordPress project where I need to replace all alt attributes for tags if there is no alt, or alt attribute is empty. So I have...

Hi, I want to add 2 script tags to my document, as follows: $_document->find("body")->addChild(new TextNode("$script1")); $_document->find("body")->addChild(new TextNode("$script2")); it adds them both to the same line. How can I add them...

I tried edit my html doc, but it will delete CSS codes which they are in Style tag like this: **in** ``` .sb3355445{color:#0b0b0b}.s199f11f8{Font:8pt Arial;border-top-color:#000;border-top-style:solid;border-top-width:1px;text-align:center;vertical-align:middle;line-height:1.15em;word-wrap:break-word} ``` **out**: ``` .sb3355445.s199f11f8 ``` I...

Fix scrutinizer.yml typo Add .gitattributes to export-ignore