src/PHPHtmlParser/Dom/TextNode.php
public function setText(string $text): void
    {
        $this->text = $text;

        if ( ! is_null($this->encode)) {
            $text = $this->encode->convert($text);

            // remember the conversion
            $this->convertedText = $text;
        }
    }
public function setText(string $text): void
    {
        $this->text = $text;

        if ( ! is_null($this->encode)) {
            $text = $this->encode->convert($text);

            // remember the conversion
            $this->convertedText = $text;
        }
    }
public function setText ( string $ text ) : void { $ this -> text = $ text ; if ( ! is_null ( $ this -> encode ) ) { $ text = $ this -> encode -> convert ( $ text ) ; // remember the conversion $ this -> convertedText = $ text ; } }
Sets the text for this node.

@var string $text
@return void
Sets the text for this node .