사용자 코드 체크 및 정리
This commit is contained in:
@ -7,9 +7,14 @@ function specialchars_replace($str, $len=0) {
|
||||
$str = substr($str, 0, $len);
|
||||
}
|
||||
|
||||
$str = str_replace(array("&", "<", ">"), array("&", "<", ">"), $str);
|
||||
|
||||
/*
|
||||
$str = preg_replace("/&/", "&", $str);
|
||||
$str = preg_replace("/</", "<", $str);
|
||||
$str = preg_replace("/>/", ">", $str);
|
||||
*/
|
||||
|
||||
return $str;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user