forked from GNUsocial/gnu-social
was using HTMLPurifier::purify() as a static method, which it is not
This commit is contained in:
parent
aab7ce70dc
commit
e39e6cdcc5
@ -173,9 +173,9 @@ class SalmonAction extends Action
|
||||
|
||||
$html = $this->act->object->content;
|
||||
|
||||
$htmlConfig = HTMLPurifier_Config::createDefault();
|
||||
$purifier = new HTMLPurifier();
|
||||
|
||||
$rendered = HTMLPurifier::purify($html, $htmlConfig);
|
||||
$rendered = $purifier->purify($html);
|
||||
|
||||
$content = html_entity_decode(strip_tags($rendered));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user