最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
html 过滤与敏感字符过滤转换程序
时间:2022-06-30 09:13:51 编辑:袖梨 来源:一聚教程网
Function HTMLEncode(str,isRequest)
If isRequest = 1 Then
str = safeRequest(str,0)
End If
If str = "" Or IsNull(str) Or IsEmpty(str) Then
HTMLEncode = ""
Exit Function
End If
' str = Replace(str,"&","&")
str = Replace(str,"<","<")
str = Replace(str,">",">")
str = Replace(str,"'","'")
str = Replace(str,"""",""")
str = Replace(str," "," ")
str = Replace(str,vbcr,"")
' str = Replace(str,vblf & vblf,"
")
' str = Replace(str,vblf,"
")
HTMLEncode = Str
End Function
Public Function HTMLDecode(str)
If str = "" Or IsNull(str) Or IsEmpty(str) Then
HTMLDecode = ""
Exit Function
End If
str = Replace(str,"&","&")
str = Replace(str,"<","<")
str = Replace(str,">",">")
str = Replace(str,"'","'")
str = Replace(str,""","""")
str = Replace(str," "," ")
' str = Replace(str,"
",vbcrlf)
' str = Replace(str,"
",vblf)
HTMLDecode = str
End Function
相关文章
- 捞女游戏中收刀入鞘结局怎么解锁-捞女游戏中收刀入鞘结局解锁攻略 07-10
- 能打动女孩子的话(打动女孩子的话语暖心) 07-10
- CKB币实时价格-ckb币最新价格 07-10
- 燕云十六声雏燕衔礼任务怎么完成-雏燕衔礼任务攻略 07-10
- 捞女游戏说话算话结局怎么解锁-捞女游戏说话算话结局解锁攻略 07-10
- 捞女游戏最后的温柔结局怎么解锁-捞女游戏最后的温柔结局解锁攻略 07-10