pQuery\DomNode::getPlainTextUTF8 PHP Метод

getPlainTextUTF8() публичный Метод

Return plaintext taking document encoding into account
public getPlainTextUTF8 ( ) : string
Результат string
    function getPlainTextUTF8()
    {
        $txt = $this->toString(true, true, true);
        $enc = $this->getEncoding();
        if ($enc !== false) {
            $txt = mb_convert_encoding($txt, 'UTF-8', $enc);
        }
        return preg_replace('`\\s+`', ' ', html_entity_decode($txt, ENT_QUOTES, 'UTF-8'));
    }
DomNode