(PHP 8)
DOMChildNode::replaceWith — Replaces the node with new nodes
...$nodes
Replaces the node with new nodes. A combination of DOMChildNode::remove() and DOMChildNode::append().
nodes
The replacement nodes.
No value is returned.