-
PublicFunctionubBcode (strcontent)
หรี่ลง
setre = newregexp
re.ignorecase = true
re.global = true
'过滤危险脚本
re.pattern = "(</script>)"
strContent = re.replace (strcontent, "</script>")
re.pattern = "(สคริปต์ :)"
strContent = re.replace (strcontent, "สคริปต์:")
re.pattern = "(สคริปต์)"
strContent = re.replace (strcontent, "สคริปต์")
re.pattern = "(JS :)"
strcontent = re.replace (strcontent, "js:")
re.pattern = "(ค่า)"
strContent = re.replace (strcontent, "value")
re.pattern = "(เกี่ยวกับ :)"
strcontent = re.replace (strcontent, "เกี่ยวกับ:")
re.pattern = "(ไฟล์ :)"
strContent = re.replace (strcontent, "ไฟล์:")
re.pattern = "(document.cookie)"
strcontent = re.replace (strcontent, "documents.cookie")
re.pattern = "(VBS :)"
strcontent = re.replace (strcontent, "vbs:")
re.pattern = "(บน (เมาส์ | ออก | ข้อผิดพลาด | คลิก | คีย์))"
strcontent = re.replace (strcontent, "on $ 2")
re.pattern = "<img. [^>]*src (= |) (. [^>]*)>"
'strcontent = re.replace (strcontent, "<imgsrc = $ 2onclick =" "JavaScript: window.open (this.src);" "style =" "เคอร์เซอร์: pointer" "border =" "0"> "))
strContent = re.replace (strcontent, "<imgsrc = $ 2Border =" "0" ">"
're.pattern = "<img (. [^>]*)>"
'strcontent = re.replace (strcontent, "<img $ 1onload =" "returnimgzoom (นี่, 550)" ">")