summaryrefslogtreecommitdiff
path: root/ext/tidy/examples/cleanhtml.php
diff options
context:
space:
mode:
authorSVN Migration <svn@php.net>2003-10-24 05:35:00 +0000
committerSVN Migration <svn@php.net>2003-10-24 05:35:00 +0000
commit9fb5d3d067f1c41deef97d8d2ab5b4d74903ce0d (patch)
tree320c248aa15362aa8d4730552a4eb9b6657ddcf4 /ext/tidy/examples/cleanhtml.php
parent663b12796b9b977226f11a8940efd53a9863e161 (diff)
downloadphp-git-php-5.0.0b2RC1.tar.gz
This commit was manufactured by cvs2svn to create tag 'php_5_0_0b2RC1'.php-5.0.0b2RC1
Diffstat (limited to 'ext/tidy/examples/cleanhtml.php')
-rw-r--r--ext/tidy/examples/cleanhtml.php38
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