Browse Source

Fix échappement caractères sur la méthode truncate

Simounet 2 years ago
parent
commit
43c52dbf37
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Functions.class.php

+ 1 - 1
Functions.class.php

@@ -150,7 +150,7 @@ class Functions
         }
         $fin='…' ;
         $nb=$limit-1;
-        return mb_substr($str, 0, $nb, 'UTF-8').$fin;
+        return htmlentities(mb_substr($str, 0, $nb, 'UTF-8').$fin);
     }