sanitizeHTML function converts input which contains non-ascii characters to an empty string
This commit is contained in:
Wytze van der Raay 2014-10-17 12:54:20 +00:00
parent 3af16578e4
commit 4e0598a6c2

View file

@ -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));