mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-11-14 09:18:41 +00:00
dcaa374dae
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@636 48356398-32a2-884e-a903-53898d9a118a
14 lines
262 B
PHP
14 lines
262 B
PHP
<?php exit;
|
|
|
|
// This file demonstrates basic usage of HTMLPurifier.
|
|
|
|
require_once '/path/to/htmlpurifier/library/HTMLPurifier.auto.php';
|
|
|
|
$purifier = new HTMLPurifier();
|
|
$html = '<b>Simple and short';
|
|
|
|
$pure_html = $purifier->purify($html);
|
|
|
|
echo $pure_html;
|
|
|
|
?>
|