forked from GNUsocial/gnu-social
add HTMLPurifier config
This commit is contained in:
parent
cc18f757a8
commit
17c329ba89
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user