Reducing Bandwidth Usage Using Tidy : tidy_parse_file « HTML « PHP






Reducing Bandwidth Usage Using Tidy

 
<?php
    $options = array("clean" => true,
              "drop-proprietary-attributes" => true,
              "drop-font-tags" => true,
              "drop-empty-paras" => true,
              "hide-comments" => true,
              "join-classes" => true,
              "join-styles" => true);

    $tidy = tidy_parse_file("http://www.php.net/", $options);
    tidy_clean_repair($tidy);
    echo $tidy;
?>
  
  








Related examples in the same category

1.Beautifying HTML Using Tidy
2.Extracting URLs Using Tidy
3.Retrieving an Entrance Node in Tidy