private function prepareHtmlForDomConversion($html)
    {
        $htmlWithSelfClosingSlashes = $this->ensurePhpUnrecognizedSelfClosingTagsAreXml($html);
        $htmlWithDocumentType = $this->ensureDocumentType($htmlWithSelfClosingSlashes);

        return $this->addContentTypeMetaTag($htmlWithDocumentType);
    }
private function prepareHtmlForDomConversion($html)
    {
        $htmlWithSelfClosingSlashes = $this->ensurePhpUnrecognizedSelfClosingTagsAreXml($html);
        $htmlWithDocumentType = $this->ensureDocumentType($htmlWithSelfClosingSlashes);

        return $this->addContentTypeMetaTag($htmlWithDocumentType);
    }
private function prepareHtmlForDomConversion ( $ html ) { $ htmlWithSelfClosingSlashes = $ this -> ensurePhpUnrecognizedSelfClosingTagsAreXml ( $ html ) ; $ htmlWithDocumentType = $ this -> ensureDocumentType ( $ htmlWithSelfClosingSlashes ) ; return $ this -> addContentTypeMetaTag ( $ htmlWithDocumentType ) ; }
Returns the HTML with added document type, Content-Type meta tag, and self-closing slashes, if needed,
ensuring that the HTML will be good for creating a DOM document from it.

@param string $html

@return string the unified HTML
Returns the HTML with added document type Content - Type meta tag and self - closing slashes if needed ensuring that the HTML will be good for creating a DOM document from it .