手机
当前位置:查字典教程网 >编程开发 >ASP教程 >asp 过滤非法字符函数
asp 过滤非法字符函数
摘要:0thenstr=Replace(str,badword(i),"***")EndIfNextcutbadchar=strEndFuncti...

<%

Function cutbadchar(str)

badstr="不|文|明|字|符|列|表|格|式"

badword=split(badstr,"|")

For i=0 to Ubound(badword)

If instr(str,badword(i)) > 0 then

str=Replace(str,badword(i),"***")

End If

Next

cutbadchar=str

End Function

Response.Write cutbadchar("中国不阿斗发射点发明")

%>

【asp 过滤非法字符函数】相关文章:

asp 获取地址栏参数代码

asp 特殊字符屏蔽代码

asp 日期格式化函数

asp:生成静态页面函数

asp 常用的字符串处理函数

asp 过滤数组重复数据

asp 中英文字符长度检测判断函数

收集asp的常用函数

asp html转换字符程序

ASP 非法字符过滤函数

精品推荐
分类导航