Example #1
0
<!--
<a
href="http://www.stormerhobbies.com/">Storefront</a>&nbsp;|&nbsp;<a
href="http://www.stormerhobbies.com/cgi-bin/searchpn.pl?sthumb=on">Search/Shop</a>&nbsp;|&nbsp;<a
href="http://www.stormerhobbies.com/site_order_info.shtml">Contact&nbsp;Us</a>&nbsp;|&nbsp;<a
href="http://www.stormerhobbies.com/site_faqs.shtml">FAQ\'s</a>&nbsp;|&nbsp;<a
href="https://www.ssl-stormerhobbies.com/cgi-bin/login.pl">My&nbsp;Account</a>&nbsp;|&nbsp;<a
href="https://www.ssl-stormerhobbies.com/cgi-bin/cart.pl?sub=View Cart">Shopping&nbsp;Cart</a>
-->

<table border="0" cellspacing="1" width="100%">
<tr>
  <td width="100%" bgcolor="#888888" align=center>
	<font size="-1">Copyright &copy;2000-2012 <b>Stormer Hobbies, Inc.</b> All Rights Reserved</font>
  </td>
</tr>
</table>
</center>



</td></tr></table>
</center>
</td></tr></table>
</BODY>
</HTML>';
$html = new DOMDocument();
// Parse the HTML into an XML document. This parser is reasonably tolerant.
$html->loadHtml(str_replace('&nbsp;', ' ', $html_text));
$html->saveHtmlFile("html_save.html");