diff options
Diffstat (limited to 'includes/sys_template.php')
-rw-r--r-- | includes/sys_template.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/sys_template.php b/includes/sys_template.php index 922010fd..92e6e674 100644 --- a/includes/sys_template.php +++ b/includes/sys_template.php @@ -18,7 +18,7 @@ function template_render($file, $data) { function shorten($str) { if (strlen($str) < 50) return $str; - return substr($str, 0, 47) . '...'; + return '<span title="' . htmlentities($str, ENT_COMPAT, 'UTF-8') . '">' . substr($str, 0, 47) . '...</span>'; } function table_body($array) { |