sanitizeHTML function converts input which contains non-ascii characters to an empty string
pull/1/head
Wytze van der Raay 10 years ago
parent 3af16578e4
commit 4e0598a6c2

@ -664,7 +664,7 @@
function sanitizeHTML($input)
{
return htmlentities(strip_tags($input), ENT_QUOTES);
return htmlentities(strip_tags($input), ENT_QUOTES, 'ISO-8859-1');
//In case of problems, please use the following line again:
//return htmlentities(strip_tags(utf8_decode($input)), ENT_QUOTES);
//return htmlspecialchars(strip_tags($input));

Loading…
Cancel
Save