sanitizeHTML function converts input which contains non-ascii characters to an empty string
This commit is contained in:
parent
3af16578e4
commit
4e0598a6c2
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue