Permalink
Browse files

Examples should be changed, so I am removed it for now. test director…

…y has been rename

git-svn-id: http://svn.php.net/repository/pear/packages/HTML_Safe/trunk@290188 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent 9e35ba7 commit 0566ab0efd790a765bd81bcf7637be929899be1b Miguel Vazquez Gocobachi committed Nov 3, 2009
File renamed without changes.
@@ -1,86 +0,0 @@
-<?php
-error_reporting(E_ALL);
-define('XML_HTMLSAX3', dirname(__FILE__). '/classes/');
-?>
-<html>
-<head>
- <style>
- STRIKE, S { color:#999999 }
- </style>
-</head>
-<body>
-<h2>SAFEHTML Testing interface</h2>
-This parser strip down all potentially dangerous content within HTML:
-<ul>
-<li> opening tag without its closing tag
-<li> closing tag without its opening tag
-<li> any of these tags: "base", "basefont", "head", "html", "body", "applet", "object", "iframe", "frame", "frameset", "script", "layer", "ilayer", "embed", "bgsound", "link", "meta", "style", "title", "blink", "xml" etc.
-<li> any of these attributes: on*, data*, dynsrc
-<li> javascript:/vbscript:/about: etc. protocols
-<li> expression/behavior etc. in styles
-<li> any other active content
-</ul>
-<p>If you found any bugs in this parser, please inform me &mdash; ICQ:551593 or <a href=mailto:thingol@mail.ru>thingol@mail.ru</a> - Roman Ivanov.
-
-<form method="post" action="<?php echo $_SERVER["PHP_SELF"];?>">
-<textarea name="html" rows="10" cols="100">
-<?
-if (isset($_POST["html"]))
-{
- $_POST["html"] = stripslashes($_POST["html"]);
- echo htmlspecialchars($_POST["html"]);
-}
-?>
-</textarea>
-<input type="submit">
-</form>
-<?php
-require_once 'HTML/Safe.php';
-
-function getmicrotime()
-{
- list($usec, $sec) = explode(" ", microtime());
- return ((float) $usec + (float) $sec);
-}
-
-if (isset($_POST['html'])) {
- $doc = $_POST['html'];
-
- // Instantiate the handler
- $safehtml = new HTML_Safe();
-
- echo '<pre>';
- // Time HTMLSax
- $start = getmicrotime();
- $result = $safehtml->parse($doc);
- echo "Parsing took seconds:\t\t" . (getmicrotime() - $start);
- echo '</pre>';
-
- echo '<b>Source code after filtration:</b><br/>';
- echo htmlspecialchars($result);
-
- echo '<p><b>Code after filtration as is (HTML):</b><br/>';
- echo $result;
-}
-?>
-<hr>
-<h3>Many thanks:</h3>
-<ul>
-<li> HTMLSax authors
-<li> lj user=BOLK
-<li> lj user=ati & lj user=curiousweasel
-<li> lj user=teplorod
-<li> Boris Bogdanov
-<li> Mash
-<li> lj user=electrocat
-<li> shmel
-<li> John "Gozzy" Godsland
-<li> Christian Stocker
-<li> Nick Cleaton
-</ul>
-<hr /> <a href="http://pear.php.net/packages/HTML_Safe">Download HTML_Safe</a>.
-<br /> Copyright &copy; 2004-2005, Roman Ivanov.
-<br /> All rights reserved.
-
-</body>
-</html>
View
@@ -30,8 +30,7 @@
<file baseinstalldir="/" md5sum="5bdeb7ab5474ab86389716053fbee2b9" name="docs/readme.txt" role="doc" />
<file baseinstalldir="/" md5sum="f7a5649b068abbb01cef98e6b9a47f8a" name="docs/examples/HTML_Safe_example.php" role="doc" />
<file baseinstalldir="/" md5sum="6c5dbc638e7a8416d56a8ee6e485fff0" name="HTML/Safe.php" role="php" />
- <file baseinstalldir="/" md5sum="1c54d1eeb92a98c1bf1aa3074bfd99d5" name="tests/AllTests.php" role="test" />
- <file baseinstalldir="/" md5sum="6f1fdcf8dbb68e213e98378390ab73aa" name="tests/HTML_SafeTest.php" role="test" />
+ <file baseinstalldir="/" md5sum="6f1fdcf8dbb68e213e98378390ab73aa" name="test/testHTML_Safe.php" role="test" />
</dir>
</contents>
<dependencies>
File renamed without changes.

0 comments on commit 0566ab0

Please sign in to comment.