FIX: fix escaping latin accents to HTML entities

This commit is contained in:
Michal Kváček
2016-04-08 01:21:44 +02:00
parent c99cee7a27
commit 951a8314b7
3 changed files with 20 additions and 7 deletions
+14
View File
@@ -0,0 +1,14 @@
<?php
/**
* Define function for escaping characters.
*
* This funcion prevents of creating build-in function, which escapes also accents...
*
* @param $value
*
* @return string
*/
function e($value)
{
return htmlspecialchars($value, ENT_QUOTES, 'UTF-8');
}