手机
当前位置:查字典教程网 >编程开发 >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常用函数:Str4Js()

asp 过滤简单html代码程序

asp 字符串连接数据库方法

收集asp的常用函数

asp html转换字符程序

asp下过滤非法的SQL字符的函数代码

asp 判断数字是否整形

FSO文件对象介绍及常用函数

asp最常用的分页函数

Asp 函数介绍

精品推荐
分类导航