src/Nodes/NodeTrait.php
public function getTextContent($normalize = false)
    {
        $nodeValue = $this->nodeValue;
        if ($normalize) {
            $nodeValue = trim(preg_replace('/\s{2,}/', ' ', $nodeValue));
        }

        return $nodeValue;
    }
public function getTextContent($normalize = false)
    {
        $nodeValue = $this->nodeValue;
        if ($normalize) {
            $nodeValue = trim(preg_replace('/\s{2,}/', ' ', $nodeValue));
        }

        return $nodeValue;
    }
public function getTextContent ( $ normalize = false ) { $ nodeValue = $ this -> nodeValue ; if ( $ normalize ) { $ nodeValue = trim ( preg_replace ( '/\s{2,}/' , ' ' , $ nodeValue ) ) ; } return $ nodeValue ; }
Returns the full text of the node.

@param bool $normalize Normalize white space?

@return string
Returns the full text of the node .