scotteh/php-dom-wrapper

Partial HTML?

Closed this issue · 1 comments

I'm running a partial html on it. How do I prevent it from wrapping it inside of doctype/html/body tags?

The following may now work for you with v1.0.9.

$doc = new Document();
$doc->setLibxmlOptions(LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD);

You can find a full list of options available at: http://php.net/manual/en/libxml.constants.php