src/PHPHtmlParser/Dom/InnerNode.php
public function propagateEncoding(Encode $encode): void
    {
        $this->encode = $encode;
        $this->tag->setEncoding($encode);
        // check children
        foreach ($this->children as $id => $child) {
            /** @var AbstractNode $node */
            $node = $child['node'];
            $node->propagateEncoding($encode);
        }
    }
public function propagateEncoding(Encode $encode): void
    {
        $this->encode = $encode;
        $this->tag->setEncoding($encode);
        // check children
        foreach ($this->children as $id => $child) {
            /** @var AbstractNode $node */
            $node = $child['node'];
            $node->propagateEncoding($encode);
        }
    }
public function propagateEncoding ( Encode $ encode ) : void { $ this -> encode = $ encode ; $ this -> tag -> setEncoding ( $ encode ) ; // check children foreach ( $ this -> children as $ id => $ child ) { /** @var AbstractNode $node */ $ node = $ child [ 'node' ] ; $ node -> propagateEncoding ( $ encode ) ; } }
Sets the encoding class to this node and propagates it
to all its children.

@param Encode $encode
@return void
Sets the encoding class to this node and propagates it to all its children .