htmlentities -> htmlspecialchars
This commit is contained in:
@@ -2540,7 +2540,7 @@ function zip_extract(){
|
||||
function html_encode($str){
|
||||
global $charSet;
|
||||
$str = preg_replace(array('/&/', '/</', '/>/', '/"/'), array('&', '<', '>', '"'), $str); // Bypass PHP to allow any charset!!
|
||||
$str = htmlentities($str, ENT_QUOTES, $charSet, false);
|
||||
$str = htmlspecialchars($str, ENT_QUOTES, $charSet, false);
|
||||
return $str;
|
||||
}
|
||||
function rep($x,$y){
|
||||
|
||||
Reference in New Issue
Block a user