From: Evan Prodromou Date: Mon, 22 Feb 2010 04:07:46 +0000 (-0500) Subject: add HTMLPurifier config X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=17c329ba89f575c7fcbf05522a0cf50db6d6a74a;p=quix0rs-gnu-social.git add HTMLPurifier config --- diff --git a/plugins/OStatus/lib/salmonaction.php b/plugins/OStatus/lib/salmonaction.php index 11c411c7db..8734223c62 100644 --- a/plugins/OStatus/lib/salmonaction.php +++ b/plugins/OStatus/lib/salmonaction.php @@ -173,7 +173,10 @@ class SalmonAction extends Action $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)); $options = array('is_local' => Notice::REMOTE_OMB,