public function getHtml()
    {
        $code = $this->code;

        if (empty($code)) {
            return;
        }

        $errors = libxml_use_internal_errors(true);
        $entities = libxml_disable_entity_loader(true);

        $dom = new \DOMDocument();
        $dom->loadHTML($code);

        libxml_use_internal_errors($errors);
        libxml_disable_entity_loader($entities);

        return Utils::xpathQuery($dom, 'descendant-or-self::body/*', false);
    }
public function getHtml()
    {
        $code = $this->code;

        if (empty($code)) {
            return;
        }

        $errors = libxml_use_internal_errors(true);
        $entities = libxml_disable_entity_loader(true);

        $dom = new \DOMDocument();
        $dom->loadHTML($code);

        libxml_use_internal_errors($errors);
        libxml_disable_entity_loader($entities);

        return Utils::xpathQuery($dom, 'descendant-or-self::body/*', false);
    }
public function getHtml ( ) { $ code = $ this -> code ; if ( empty ( $ code ) ) { return ; } $ errors = libxml_use_internal_errors ( true ) ; $ entities = libxml_disable_entity_loader ( true ) ; $ dom = new \ DOMDocument ( ) ; $ dom -> loadHTML ( $ code ) ; libxml_use_internal_errors ( $ errors ) ; libxml_disable_entity_loader ( $ entities ) ; return Utils :: xpathQuery ( $ dom , 'descendant-or-self::body/*' , false ) ; }
Returns the code as DOMNodeList elements

@return \DOMNodeList|null
Returns the code as DOMNodeList elements