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