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

If you try to get all the anchors like this, then by default one (the last) element is returned: `$anchors = $soup->getElementsByTagName('a');` The following does give me all the elements:...

PROBLEM When parsing a document having: <input name="me" value="my { dog is nice"> the document is parsed in an invalid way. The value property for $input in ``` foreach($this->html->find('input[name='me']') as...

getAttribute error while the attribute name include '-' Is there anybody meet this problem before? like this : $element->data-lazyload;

Here is my testing code: ``` php $CC =

Get a node's index or the last child node index from a node object. Delete a node and its children recursively on the html object. Delete nodes and children by...

I found a problem with `:first-child` psedo-class selector. For this HTML ``` html × link 1 (info) link 2 (info) ``` Selector `.links > ul > li:first-child > a` matches...

I had to add this conversion to get my code running properly. Maybe someone else might find it useful too.

When outerText() get a TEXT node it will convert the text using the convert_text() method to ensure it is utf-8 complient. (fixes #6)

When you attempt to get the text of an element that has no html elements in it it returns a non-utf-8 encoded string. An element such as <h3>Технические работы на...

Fix legacy pattern matching to be compatible with PHP 7.4+. These changes still work with older versions of php (like 5.2+). PHP 7.4 requires escaping dashes (\-). The only changes...