mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-01-09 15:31:53 +00:00
4f8004f5d3
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
9 lines
244 B
PHP
9 lines
244 B
PHP
<?php
|
|
|
|
require_once 'HTMLPurifier.includes.php';
|
|
|
|
$config = HTMLPurifier_Config::createDefault();
|
|
if (isset($argv[1])) $config->loadIni($argv[1]);
|
|
$purifier = new HTMLPurifier($config);
|
|
echo $purifier->purify(file_get_contents('php://stdin'));
|