mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-12-23 08:51:53 +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;
|
|
|
|
?>
|