// blacklist 를 필터링하여 사용할 수 없도록 함 test_str_low= test_str.toLowerCase(); test_str = test_str_low; test_str = test_str.replaceAll("javascript", "x-javascript"); test_str = test_str.replaceAll("script", "x-script"); test_str = test_str.replaceAll("iframe", "x-iframe"); test_str = test_str.replaceAll("document", "x-document"); test_str = test_str.replaceAll("vbscript", "x-vbscript"); test_str = test_str.replaceAll("applet", "x-applet"); test_str = test_str.replaceAll("embed", "x-embed"); // embed 태그를 사용하지 않을 경우만 test_str = test_str.replaceAll("object", "x-object"); // object 태그를 사용하지 않을 경우만 test_str = test_str.replaceAll("frame", "x-frame"); test_str = test_str.replaceAll("grameset", "x-grameset"); test_str = test_str.replaceAll("layer", "x-layer"); test_str = test_str.replaceAll("bgsound", "x-bgsound"); test_str = test_str.replaceAll("alert", "x-alert"); test_str = test_str.replaceAll("onblur", "x-onblur"); test_str = test_str.replaceAll("onchange", "x-onchange"); test_str = test_str.replaceAll("onclick", "x-onclick"); test_str = test_str.replaceAll("ondblclick","x-ondblclick"); test_str = test_str.replaceAll("enerror", "x-enerror"); test_str = test_str.replaceAll("onfocus", "x-onfocus"); test_str = test_str.replaceAll("onload", "x-onload"); test_str = test_str.replaceAll("onmouse", "x-onmouse"); test_str = test_str.replaceAll("onscroll", "x-onscroll"); test_str = test_str.replaceAll("onsubmit", "x-onsubmit"); test_str = test_str.replaceAll("onunload", "x-onunload"); }