pQuery\DomNode::getPlainText PHP Méthode

getPlainText() public méthode

Similar to JavaScript plainText, will return text in node (and subnodes)
public getPlainText ( ) : string
Résultat string
    function getPlainText()
    {
        return preg_replace('`\\s+`', ' ', html_entity_decode($this->toString(true, true, true), ENT_QUOTES));
    }
DomNode