var removeRestrictTag = function() {
var after = document.getElementById("template_jst").value;
var regStr1 = new RegExp("behavior[ ]*:[ ]*url\(.*\)", "gi");
var regStr2 = new RegExp("<[ ]*meta(>|[ ]+[^>]*>)", "gi");
var regStr3 = new RegExp("background[ ]*=[ ]*([ ]*|\'|\")#([ ]+|>|\'|\")", "gi");
var replaceStr = "[안내]태그제한으로등록되지않습니다.";
var replaceStrMeta = "";
var after1 = after.replace(regStr1,replaceStr);
var after2 = after1.replace(regStr2,replaceStrMeta);
after = after2.replace(regStr3,replaceStr);
return after;
}
var removedTagString = removeRestrictTag();
document.write(' ' + removedTagString + ' ');
redefineLink();
|