--TEST-- DOMDocument::saveHTML() vs DOMDocumet::saveXML() --EXTENSIONS-- dom --FILE--

Hi.
there

EOD; $d->loadHTML($str); $e = $d->getElementsByTagName("p"); $e = $e->item(0); echo $d->saveXml($e),"\n"; echo $d->saveHtml($e),"\n"; ?> --EXPECT--

Hi.
there

Hi.
there