Fix for UTF8 issue

This commit is contained in:
Hillel Coren 2018-03-13 16:14:47 +02:00
parent 5343e0d8b1
commit c0ffd72bf2

View File

@ -103,7 +103,7 @@ class EntityDatatable
$str = e($str);
if (strlen($str) > $max) {
return '<span data-toggle="tooltip" data-placement="bottom" title="' . $str . '">' . trim(substr($str, 0, $max)) . '...' . '</span>';
return '<span data-toggle="tooltip" data-placement="bottom" title="' . mb_substr($str, 0, 500) . '">' . trim(mb_substr($str, 0, $max)) . '...' . '</span>';
} else {
return $str;
}