非法關鍵詞過濾程序
Public Function FilterBadWord(str)
If str = "" Or IsNull(str) Then
FilterBadWord = ""
Exit Function
End If
Dim i
badWordSplit = Split(Cfg
For i =
filterSplit = Split(badWordSplit(i)
If InStr(
Next
FilterBadWord = str
End Function
使用方法
dim stra
stra = FilterBadWord(request
From:http://tw.wingwit.com/Article/program/net/201311/14293.html