php-dom-wrapper icon indicating copy to clipboard operation
php-dom-wrapper copied to clipboard

Simple DOM wrapper library to manipulate and traverse HTML documents similar to jQuery

Results 8 php-dom-wrapper issues
Sort by recently updated
recently updated
newest added

Hi; I am trying to set the href attribute to {{modelItem.finalUrl}}, as variable for PHP template. The library automatically encodes the {characters, anyway, to disable this feature? $element->attr($attr, "{{modelItem.$bindValue}}"); result:...

Hi, I'm seeking to update our dependency to the latest major version, but I can't see what may have changed and what code I need to update. Is there a...

The CssSelectorConverter in find() method can be cached.

Elements get duplicated when using append(), prepend(), before(), after() https://github.com/scotteh/php-dom-wrapper/blob/a6c1c98a39852b128fb91602c4d55c5f1ae65f26/src/Traits/ManipulationTrait.php#L83

A bit of an unusual edge case, but I have found the library can incorrectly interpret the charset if the html content is in a single line and doesn't declare...

What is the idiomatic way to use this library to convert a tag-balanced HTML fragment in a string into a node list, in a reliable 1:1 manner that doesn't require...

```php use DOMWrap\Document; $html = find(':scope > li'); // Returns '3' or '4'? var_dump($nodes->count()); ```