private function parseContent()
    {
        if ($this->getType() === 'xhtml') {
            try {
                /** @var \DOMElement $xhtml */
                $xhtml = $this->query('xhtml:div', Node::SINGLE | Node::REQUIRED);
            } catch (MalformedNodeException $e) {
                return '';
            }

            return Xhtml::extract($xhtml);
        }

        return $this->getDomElement()->textContent;
    }
private function parseContent()
    {
        if ($this->getType() === 'xhtml') {
            try {
                /** @var \DOMElement $xhtml */
                $xhtml = $this->query('xhtml:div', Node::SINGLE | Node::REQUIRED);
            } catch (MalformedNodeException $e) {
                return '';
            }

            return Xhtml::extract($xhtml);
        }

        return $this->getDomElement()->textContent;
    }
private function parseContent ( ) { if ( $ this -> getType ( ) === 'xhtml' ) { try { /** @var \DOMElement $xhtml */ $ xhtml = $ this -> query ( 'xhtml:div' , Node :: SINGLE | Node :: REQUIRED ) ; } catch ( MalformedNodeException $ e ) { return '' ; } return Xhtml :: extract ( $ xhtml ) ; } return $ this -> getDomElement ( ) -> textContent ; }
Return string value.

@return string
Return string value .