使用 PHP 的 tidy_clean_repair() 对 HTML 内容进行清理和格式化

来源:互联网 发布:约车软件 编辑:程序博客网 时间:2024/06/05 20:19

使用 PHP 的 tidy_clean_repair() 对 HTML 内容进行清理和格式化


<?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;?>



本文章来至源码世界 http://www.ymsky.net/views/52568.shtml
0 0