Code has been added to clipboard!

Creating PHP DOMDocument

Example
<?php
$doc = new DOMDocument();
$doc->loadHTML("<html><body>Example<br></body></html>");
echo $doc->saveHTML();
?>