Partial HTML?
Closed this issue · 1 comments
blueridgemountains1 commented
I'm running a partial html on it. How do I prevent it from wrapping it inside of doctype/html/body tags?
scotteh commented
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