private function getNodeContent(\DOMNode $node)
    {
        $type = $node->attributes->getNamedItem('type');
        if ($type && strtolower($type->nodeValue) == 'xhtml') {
            $result = '';
            foreach ($node->childNodes as $childNode) {
                $result .= $node->ownerDocument->save($childNode);
            }
            return $result;
        } else {
            return $node->nodeValue;
        }
    }
private function getNodeContent(\DOMNode $node)
    {
        $type = $node->attributes->getNamedItem('type');
        if ($type && strtolower($type->nodeValue) == 'xhtml') {
            $result = '';
            foreach ($node->childNodes as $childNode) {
                $result .= $node->ownerDocument->save($childNode);
            }
            return $result;
        } else {
            return $node->nodeValue;
        }
    }
private function getNodeContent ( \ DOMNode $ node ) { $ type = $ node -> attributes -> getNamedItem ( 'type' ) ; if ( $ type && strtolower ( $ type -> nodeValue ) == 'xhtml' ) { $ result = '' ; foreach ( $ node -> childNodes as $ childNode ) { $ result .= $ node -> ownerDocument -> save ( $ childNode ) ; } return $ result ; } else { return $ node -> nodeValue ; } }
Enable XHTML types.
@param \DOMNode $node
@return string
@codeCoverageIgnore
Enable XHTML types .