add HTMLPurifier config

This commit is contained in:
Evan Prodromou 2010-02-21 23:07:46 -05:00
parent cc18f757a8
commit 17c329ba89

View File

@ -173,7 +173,10 @@ class SalmonAction extends Action
$html = $this->act->object->content; $html = $this->act->object->content;
$rendered = HTMLPurifier::purify($html); $htmlConfig = HTMLPurifier_Config::createDefault();
$rendered = HTMLPurifier::purify($html, $htmlConfig);
$content = html_entity_decode(strip_tags($rendered)); $content = html_entity_decode(strip_tags($rendered));
$options = array('is_local' => Notice::REMOTE_OMB, $options = array('is_local' => Notice::REMOTE_OMB,