diff options
author | SVN Migration <svn@php.net> | 2003-10-20 15:33:55 +0000 |
---|---|---|
committer | SVN Migration <svn@php.net> | 2003-10-20 15:33:55 +0000 |
commit | b35a47887225d5eb0c607327cd013e9f56e862d1 (patch) | |
tree | ca5cff0d747c59ff8ed7ff8a5c3cf0b51dff8764 /ext/tidy/examples/cleanhtml.php | |
parent | f811341773306eb5c77f63ef13bd677ac4641938 (diff) | |
download | php-git-RELEASE_1_3b3.tar.gz |
This commit was manufactured by cvs2svn to create tag 'RELEASE_1_3b3'.RELEASE_1_3b3
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 |