Skip to content

Commit

Permalink
Fix encoding issues causing message index endpoint to fail
Browse files Browse the repository at this point in the history
  • Loading branch information
daveearley committed Jun 24, 2024
1 parent 7711443 commit ee1d73b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app/Helper/StringHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ee1d73b

Please sign in to comment.