pQuery\DomNode::setPlainText PHP Method

setPlainText() public method

Similar to JavaScript plainText, will replace child nodes with new text (literal)
public setPlainText ( string $text )
$text string
    function setPlainText($text)
    {
        $this->clear();
        if (trim($text)) {
            $this->addText(htmlentities($text, ENT_QUOTES));
        }
    }
DomNode