<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: parsing code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Sat, 30 Aug 2008 09:11:58 GMT</pubDate>
    <description>DZone Snippets: parsing code</description>
    <item>
      <title>Tidy Remote HTML (using a web service)</title>
      <link>http://snippets.dzone.com/posts/show/4218</link>
      <description>// Clean up some code using a web service. If you need to do this more quickly I suggest using a local tidy installation&lt;br /&gt;// rather than my web service, but this is nice and easy. :)&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;function tidied($url) {&lt;br /&gt;  /* Cleans up a page via Tidy, returning the cleaned up html as a string&lt;br /&gt;   * By Logan Koester &lt;logan@logankoester.com&gt; 2007-06-28&lt;br /&gt;   * Props to http://infohound.net/tidy */&lt;br /&gt;  return file_get_contents("http://logankoester.com/tools/tidy.php?q=$url");&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Thu, 28 Jun 2007 10:16:46 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/4218</guid>
      <author>logankoester (Logan Koester)</author>
    </item>
  </channel>
</rss>
