Bug fixes
This commit is contained in:
parent
8be6a1425e
commit
3d4e2cd526
@ -5,7 +5,13 @@ class Sanitize {
|
||||
// new
|
||||
public static function html($text)
|
||||
{
|
||||
return htmlspecialchars($text, ENT_COMPAT|ENT_HTML5, CHARSET);
|
||||
$flags = ENT_COMPAT;
|
||||
|
||||
if(defined('ENT_HTML5')) {
|
||||
$flags = ENT_COMPAT|ENT_HTML5;
|
||||
}
|
||||
|
||||
return htmlspecialchars($text, $flags, CHARSET);
|
||||
}
|
||||
|
||||
public static function pathFile($path, $file)
|
||||
|
Loading…
Reference in New Issue
Block a user