private function createRawXmlDocument()
    {
        $xmlDocument = new \DOMDocument;
        $xmlDocument->encoding = 'UTF-8';
        $xmlDocument->strictErrorChecking = false;
        $xmlDocument->formatOutput = true;
        $libXmlState = libxml_use_internal_errors(true);
        $xmlDocument->loadHTML($this->getUnifiedHtml());
        libxml_clear_errors();
        libxml_use_internal_errors($libXmlState);
        $xmlDocument->normalizeDocument();

        return $xmlDocument;
    }
private function createRawXmlDocument()
    {
        $xmlDocument = new \DOMDocument;
        $xmlDocument->encoding = 'UTF-8';
        $xmlDocument->strictErrorChecking = false;
        $xmlDocument->formatOutput = true;
        $libXmlState = libxml_use_internal_errors(true);
        $xmlDocument->loadHTML($this->getUnifiedHtml());
        libxml_clear_errors();
        libxml_use_internal_errors($libXmlState);
        $xmlDocument->normalizeDocument();

        return $xmlDocument;
    }
private function createRawXmlDocument ( ) { $ xmlDocument = new \ DOMDocument ; $ xmlDocument -> encoding = 'UTF-8' ; $ xmlDocument -> strictErrorChecking = false ; $ xmlDocument -> formatOutput = true ; $ libXmlState = libxml_use_internal_errors ( true ) ; $ xmlDocument -> loadHTML ( $ this -> getUnifiedHtml ( ) ) ; libxml_clear_errors ( ) ; libxml_use_internal_errors ( $ libXmlState ) ; $ xmlDocument -> normalizeDocument ( ) ; return $ xmlDocument ; }
Creates a DOMDocument instance with the current HTML.

@return \DOMDocument
Creates a DOMDocument instance with the current HTML .