diff options
author | Andrew Dolgov <[email protected]> | 2012-01-05 11:44:24 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2012-01-05 11:44:24 +0400 |
commit | 31c56e1acbddc91c6300eb05742b71499f207ac6 (patch) | |
tree | 6b377710f3e6ccfd16cdae6793adfdc6e9528176 | |
parent | da9f393ad27e5e93ec6365586847cd2f58386a33 (diff) |
add htmlpurifier youtube filter
-rw-r--r-- | include/functions.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/functions.php b/include/functions.php index 73c5e39fb..650196830 100644 --- a/include/functions.php +++ b/include/functions.php @@ -2574,6 +2574,8 @@ @$config->set('Cache', 'SerializerPath', "../" . CACHE_DIR . "/htmlpurifier"); } + $config->set('Filter.YouTube', true); + $purifier = new HTMLPurifier($config); } |