Beautifying HTML Using Tidy : tidy_parse_file « HTML « PHP






Beautifying HTML Using Tidy

 
<?php
      $options = array("indent" => true,       
                       "indent-spaces" => 4,   
                       "wrap" => 4096);        
      $tidy = tidy_parse_file("http://www.php.net/", $options);
      tidy_clean_repair($tidy);
      echo $tidy;
?>
  
  








Related examples in the same category

1.Extracting URLs Using Tidy
2.Retrieving an Entrance Node in Tidy
3.Reducing Bandwidth Usage Using Tidy