]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/apitimelineuser.php
Unifying HTML stripping functions to common_strip_html
[quix0rs-gnu-social.git] / actions / apitimelineuser.php
index b509def613d29bbb26a9ace44d76375904dc7d07..c0894c5dbaa69491eae1725def746626f66bd477 100644 (file)
@@ -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);