-
-
Notifications
You must be signed in to change notification settings - Fork 469
Closed
Description
Currently we are able to remove specific child and add new child in the tail of the parent, but we can't replace specific tag node.
sunra/php-simple-html-dom-parser can do this.
$child->outertext = '<new />';Here is my thought:
$child = $parent->find('child')[0];
$newChild = new Tag('new');
$parent->replaceChild($child->id(), $newChild);Thanks!
demogorgorn