时间:2021-05-28
过滤关键字<%
'******************************
'函数:ChkKeyWord(ByValkeyword)
'参数:keyword,关键字
'作者:阿里西西
'日期:2007/7/15
'描述:过滤关键字
'示例:ChkKeyWord("sfsdfdf'8&5ddd")
'******************************
FunctionChkKeyWord(ByValkeyword)
DimFobWords,i
OnErrorResumeNext
FobWords=Array(91,92,304,305,430,431,437,438,12460,12461,12462,12463,12464,12465,12466,12467,12468,12469,12470,12471,12472,12473,12474,12475,12476,12477,12478,12479,12480,12481,12482,12483,12485,12486,12487,12488,12489,12490,12496,12497,12498,12499,12500,12501,12502,12503,12504,12505,12506,12507,12508,12509,12510,12521,12532,12533,65339,65340)
Fori=1ToUBound(FobWords,1)
IfInStr(keyword,ChrW(FobWords(i)))>0Then
keyword=Replace(keyword,ChrW(FobWords(i)),"")
EndIf
Next
keyword=Left(keyword,100)
FobWords=Array("~","!","@","#","$","%","^","&","*","(",")","_","+","=","`","[","]","{","}",";",":","""","'",",","<",">",".","/","\","?","_")
Fori=0ToUBound(FobWords,1)
IfInStr(keyword,FobWords(i))>0Then
keyword=Replace(keyword,FobWords(i),"")
EndIf
Next
ChkKeyWord=keyword
EndFunction%>
声明:本页内容来源网络,仅供用户参考;我单位不保证亦不表示资料全面及准确无误,也不保证亦不表示这些资料为最新信息,如因任何原因,本网内容或者用户因倚赖本网内容造成任何损失或损害,我单位将不会负任何法律责任。如涉及版权问题,请提交至online#300.cn邮箱联系删除。
本文实例讲述了jQuery过滤HTML标签并高亮显示关键字的方法。分享给大家供大家参考。具体如下:jQuery实现网页关键字过滤效果,将需要过滤的文字定义在Ja
蛙蛙推荐:asp实现树型结构选择自onlytiancai的Blog关键字蛙蛙推荐:asp实现树型结构出处
google关键字:inurl:news_more.asp?lm2=(关键字很多的自己定义吧)1、/admin/admin_news_pl_view.asp?i
本文实例讲述了asp.netMVC利用ActionFilterAttribute过滤关键字的方法。分享给大家供大家参考,具体如下:在开发过程中,有时候会对用户输
以下是源码,请命名为.ASP文件.复制代码代码如下:关键字,网站在Google中排名查询关键字,网站在Google中排名查询:网址:关键字