forked from GNUsocial/gnu-social
Unifying HTML stripping functions to common_strip_html
This commit is contained in:
@@ -384,7 +384,7 @@ class ApiTimelineUserAction extends ApiBareAuthAction
|
||||
// Get (safe!) HTML and text versions of the content
|
||||
|
||||
$rendered = $this->purify($sourceContent);
|
||||
$content = html_entity_decode(strip_tags($rendered), ENT_QUOTES, 'UTF-8');
|
||||
$content = common_strip_html($rendered);
|
||||
|
||||
$shortened = $this->auth_user->shortenLinks($content);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user