summaryrefslogtreecommitdiff
path: root/ext/tidy/examples/cleanhtml5.php
diff options
context:
space:
mode:
authorSVN Migration <svn@php.net>2005-06-10 18:06:44 +0000
committerSVN Migration <svn@php.net>2005-06-10 18:06:44 +0000
commit02889a1980340caaa4f2450c834da87fb675f848 (patch)
tree2e0b0f07f6810a635d5ecba89f63b6bfb63126f8 /ext/tidy/examples/cleanhtml5.php
parent3b1f8e9ad74ad07580e4248b39fd0db261c31aa0 (diff)
downloadphp-git-php-5.0.1b1.tar.gz
This commit was manufactured by cvs2svn to create tag 'php_5_0_1b1'.php-5.0.1b1
Diffstat (limited to 'ext/tidy/examples/cleanhtml5.php')
-rw-r--r--ext/tidy/examples/cleanhtml5.php39
1 files changed, 0 insertions, 39 deletions
diff --git a/ext/tidy/examples/cleanhtml5.php b/ext/tidy/examples/cleanhtml5.php
deleted file mode 100644
index 4dfd7643e1..0000000000
--- a/ext/tidy/examples/cleanhtml5.php
+++ /dev/null
@@ -1,39 +0,0 @@
-<?php
-
- /*
- * cleanhtml5.php
- *
- * A simple script to clean and repair HTML,XHTML,PHP,ASP,etc. documents
- * if no file is provided, it reads from standard input.
- *
- * NOTE: Works only with tidy for PHP 5, for tidy in PHP 4.3.x see cleanhtml.php
- *
- * By: John Coggeshall <john@php.net>
- *
- * Usage: php cleanhtml5.php [filename]
- *
- */
-
- if(!isset($_SERVER['argv'][1])) {
- $data = file_get_contents("php://stdin");
- $tidy = tidy_parse_string($data);
- } else {
- $tidy = tidy_parse_file($_SERVER['argv'][1]);
- }
-
- $tidy->cleanRepair();
-
- if(!empty($tidy->errorBuffer)) {
-
- echo "\n\nThe following errors or warnings occured:\n";
- echo "{$tidy->errorBuffer}\n";
-
- }
-
- echo $tidy;
-
-?>
-
-
-
-