true, "drop-font-tags" => true, "drop-empt">
当前位置:Gxlcms > PHP教程 > 使用PHP的tidy_clean_repair()对HTML进行压缩

使用PHP的tidy_clean_repair()对HTML进行压缩

时间:2021-07-01 10:21:17 帮助过:31人阅读

<无详细内容>
  1. $options = array("clean" => true,
  2. "drop-proprietary-attributes" => true,
  3. "drop-font-tags" => true,
  4. "drop-empty-paras" => true,
  5. "hide-comments" => true,
  6. "join-classes" => true,
  7. "join-styles" => true);
  8. $tidy = tidy_parse_file("http://www.php.com/", $options);
  9. tidy_clean_repair($tidy);
  10. echo $tidy;
  11. ?>

人气教程排行