summaryrefslogtreecommitdiff
path: root/plugins/OStatus/lib/salmonaction.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-02-21 23:07:46 -0500
committerEvan Prodromou <evan@status.net>2010-02-21 23:07:46 -0500
commit17c329ba89f575c7fcbf05522a0cf50db6d6a74a (patch)
tree9c7227c84637f2c6312d03126a9fce06edf70c38 /plugins/OStatus/lib/salmonaction.php
parentcc18f757a8e6ef854cae89d8947efac505b1fd7c (diff)
add HTMLPurifier config
Diffstat (limited to 'plugins/OStatus/lib/salmonaction.php')
-rw-r--r--plugins/OStatus/lib/salmonaction.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/OStatus/lib/salmonaction.php b/plugins/OStatus/lib/salmonaction.php
index 11c411c7d..8734223c6 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,