FluentDOM\Nodes\Modifier::replaceChildren PHP Method

replaceChildren() public method

Replace the target node children with the content nodes
public replaceChildren ( array | Traversable $contentNodes ) : array
$contentNodes array | Traversable
return array new nodes
    public function replaceChildren($contentNodes)
    {
        $this->_node->nodeValue = '';
        return $this->appendChildren($contentNodes);
    }