Over a million developers have joined DZone.

Tidy Remote HTML (using A Web Service)

// Clean up some code using a web service. If you need to do this more quickly I suggest using a local tidy installation
// rather than my web service, but this is nice and easy. :)

function tidied($url) {
  /* Cleans up a page via Tidy, returning the cleaned up html as a string
   * By Logan Koester  2007-06-28
   * Props to http://infohound.net/tidy */
  return file_get_contents("http://logankoester.com/tools/tidy.php?q=$url");

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}