0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-01-09 15:31:53 +00:00
htmlpurifier/library/HTMLPurifier.stub.php
Edward Z. Yang 4f8004f5d3 Changes to make HipHop compile HTML Purifier.
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
2010-03-09 01:37:16 -05:00

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'));