src/PHPHtmlParser/Dom/TextNode.php
public function text(): string
    {
        // convert charset
        if ( ! is_null($this->encode)) {
            if ( ! is_null($this->convertedText)) {
                // we already know the converted value
                return $this->convertedText;
            }
            $text = $this->encode->convert($this->text);

            // remember the conversion
            $this->convertedText = $text;

            return $text;
        } else {
            return $this->text;
        }
    }
public function text(): string
    {
        // convert charset
        if ( ! is_null($this->encode)) {
            if ( ! is_null($this->convertedText)) {
                // we already know the converted value
                return $this->convertedText;
            }
            $text = $this->encode->convert($this->text);

            // remember the conversion
            $this->convertedText = $text;

            return $text;
        } else {
            return $this->text;
        }
    }
public function text ( ) : string { // convert charset if ( ! is_null ( $ this -> encode ) ) { if ( ! is_null ( $ this -> convertedText ) ) { // we already know the converted value return $ this -> convertedText ; } $ text = $ this -> encode -> convert ( $ this -> text ) ; // remember the conversion $ this -> convertedText = $ text ; return $ text ; } else { return $ this -> text ; } }
Returns the text of this node.

@return string
Returns the text of this node .