当前位置: 移动技术网 > IT编程>开发语言>Asp > asp 过滤非法字符函数

asp 过滤非法字符函数

2017年12月12日  | 移动技术网IT编程  | 我要评论
<%
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("中国不阿斗发射点发明")
%>

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网