purifier 1차 적용

This commit is contained in:
Hide_D committed 2018-06-24 03:47:44 +09:00
1 parent 5c82edc4be
commit 5ca8a6ecfa
7 files changed
+35 -30

No files matched your search

-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);