0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2024-11-09 23:28:42 +00:00

[1.3.3] Random miscellaneous housekeeping

git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@636 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
Edward Z. Yang 2007-01-11 22:37:54 +00:00
parent e2cc37724b
commit dcaa374dae
4 changed files with 11 additions and 8 deletions

View File

@ -1,15 +1,14 @@
<?php <?php exit;
// This file demonstrates basic usage of HTMLPurifier. // This file demonstrates basic usage of HTMLPurifier.
exit; // not to be called directly, it will fail fantastically! require_once '/path/to/htmlpurifier/library/HTMLPurifier.auto.php';
set_include_path('/path/to/htmlpurifier/library' . PATH_SEPARATOR . get_include_path());
require_once 'HTMLPurifier.php';
$purifier = new HTMLPurifier(); $purifier = new HTMLPurifier();
$html = '<b>Simple and short'; $html = '<b>Simple and short';
$pure_html = $purifier->purify($html); $pure_html = $purifier->purify($html);
echo $pure_html;
?> ?>

View File

@ -54,11 +54,15 @@ echo '<?xml version="1.0" encoding="UTF-8" ?>';
</script> </script>
</head> </head>
<body> <body>
<h1>HTML Purifier Printer Smoketest</h1> <h1>HTML Purifier Printer Smoketest</h1>
<p>This page will allow you to see precisely what HTML Purifier's internal
<p>HTML Purifier claims to have a robust yet permissive whitelist: this
page will allow you to see precisely what HTML Purifier's internal
whitelist is. You can whitelist is. You can
also twiddle with the configuration settings to see how a directive also twiddle with the configuration settings to see how a directive
influences the internal workings of the definition objects.</p> influences the internal workings of the definition objects.</p>
<h2>Modify configuration</h2> <h2>Modify configuration</h2>
<p>You can specify an array by typing in a comma-separated <p>You can specify an array by typing in a comma-separated

View File

@ -1,5 +1,7 @@
<?php <?php
// this file is encoded in UTF-8, please don't let your editor mangle it
require_once 'common.php'; require_once 'common.php';
echo '<?xml version="1.0" encoding="UTF-8" ?>'; echo '<?xml version="1.0" encoding="UTF-8" ?>';

View File

@ -978,8 +978,6 @@ alert(a.source)&lt;/SCRIPT&gt;</code>
-onErrorUpdate() (fires on a databound object when an error occurs while updating the associated data in the data source object) -onErrorUpdate() (fires on a databound object when an error occurs while updating the associated data in the data source object)
-onExit() (fires when someone clicks on a link or presses the back button)
-onFilterChange() (fires when a visual filter completes state change) -onFilterChange() (fires when a visual filter completes state change)
-onFinish() (attacker could create the exploit when marquee is finished looping) -onFinish() (attacker could create the exploit when marquee is finished looping)