diff --git a/app/Misc/Helper.php b/app/Misc/Helper.php index 34efc56f..2793cec1 100644 --- a/app/Misc/Helper.php +++ b/app/Misc/Helper.php @@ -540,6 +540,11 @@ class Helper */ public static function textPreview($text, $length = self::PREVIEW_MAXLENGTH) { + $text = strtr($text, [ + '' => ' ', + '

' => '

' + ]); + $text = self::stripTags($text); $text = mb_substr($text, 0, $length);