diff options
author | SVN Migration <svn@php.net> | 2003-10-30 10:07:27 +0000 |
---|---|---|
committer | SVN Migration <svn@php.net> | 2003-10-30 10:07:27 +0000 |
commit | e00288b5b25766c2292b2e45596b9bc25d910111 (patch) | |
tree | d217ee89217ebab98202493d6820befb7bfdca6e /ext/tidy/examples/cleanhtml.php | |
parent | 0b3fe789062221deb65f7c0b15c450d9bda9bcbb (diff) | |
download | php-git-php-5.0.0b2.tar.gz |
This commit was manufactured by cvs2svn to create tag 'php_5_0_0b2'.php-5.0.0b2
Diffstat (limited to 'ext/tidy/examples/cleanhtml.php')
-rw-r--r-- | ext/tidy/examples/cleanhtml.php | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/ext/tidy/examples/cleanhtml.php b/ext/tidy/examples/cleanhtml.php deleted file mode 100644 index 9d054cda4f..0000000000 --- a/ext/tidy/examples/cleanhtml.php +++ /dev/null @@ -1,38 +0,0 @@ -<?php - - /* - * cleanhtml.php - * - * A simple script to clean and repair HTML,XHTML,PHP,ASP,etc. documents - * if no file is provided, it reads from standard input. - * - * By: John Coggeshall <john@php.net> - * - * Usage: php cleanhtml.php [filename] - * - */ - - if(!isset($_SERVER['argv'][1])) { - $data = file_get_contents("php://stdin"); - tidy_parse_string($data); - } else { - tidy_parse_file($_SERVER['argv'][1]); - } - - tidy_clean_repair(); - - if(tidy_warning_count() || - tidy_error_count()) { - - echo "\n\nThe following errors or warnings occured:\n"; - echo tidy_get_error_buffer(); - echo "\n"; - } - - echo tidy_get_output(); - -?> - - - -
\ No newline at end of file |