diff --git a/backend/app/Helper/StringHelper.php b/backend/app/Helper/StringHelper.php index 635baaf2..ffa612c1 100644 --- a/backend/app/Helper/StringHelper.php +++ b/backend/app/Helper/StringHelper.php @@ -12,7 +12,7 @@ public static function previewFromHtml(string $text, int $length = 100): string $text = trim(preg_replace('/\s+/', ' ', $text)); if (strlen($text) > $length) { - $text = substr($text, 0, $length - 3) . '...'; + $text = mb_substr($text, 0, $length - 3) . '...'; } return $text;