pQuery\DomNode::getPlainText PHP Method

getPlainText() public method

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