purifier 1차 적용

This commit is contained in:
2018-06-24 03:47:44 +09:00
parent 5c82edc4be
commit 5ca8a6ecfa
7 changed files with 35 additions and 30 deletions
-7
View File
@@ -24,13 +24,6 @@ function Tag2Code(string $str) {
return nl2br($str);
}
function BadTag2Code(string $str) {
/* FIXME: 제대로된 tag 변환 코드 사용 */
$str = str_replace("<script", "<sorry", $str);
$str = str_replace("</script", "</sorry", $str);
return $str;
}
function tab(string $str, $maxsize, $ch) {
$size = strlen($str);