您现在的位置是:网站首页> 编程资料编程资料
ASP常用函数:HTMLDecode_ASP基础_
2023-05-25
171人已围观
简介 ASP常用函数:HTMLDecode_ASP基础_
<%
Function HTMLDecode(sText)
Dim I
sText = Replace(sText, "&" , Chr(38))
sText = Replace(sText, """", Chr(34))
sText = Replace(sText, "<" , Chr(60))
sText = Replace(sText, ">" , Chr(62))
sText = Replace(sText, " ", Chr(32))
For I = 1 To 255
sText = Replace(sText, "" & I & ";", Chr(I))
Next
HTMLDecode = sText
End Function
%>
Function HTMLDecode(sText)
Dim I
sText = Replace(sText, "&" , Chr(38))
sText = Replace(sText, """", Chr(34))
sText = Replace(sText, "<" , Chr(60))
sText = Replace(sText, ">" , Chr(62))
sText = Replace(sText, " ", Chr(32))
For I = 1 To 255
sText = Replace(sText, "" & I & ";", Chr(I))
Next
HTMLDecode = sText
End Function
%>
您可能感兴趣的文章:
下一篇:15种ASP技巧_应用技巧_
相关内容
- 一个可以自动创建多级目录的函数_ASP基础_
- 随机提取N条记录 推荐_应用技巧_
- 查看所有的Server Variables的环境变量_ASP基础_
- ASP常用函数:XMLEncode_ASP基础_
- ASP常用函数:CLngIP()_ASP基础_
- ASP常用函数:CStrIP()_ASP基础_
- On Error Resume Next 语句_ASP基础_
- IIS 错误 Server Application Error 详细解决方法_ASP基础_
- Eval 函数 | Execute 语句 | ExecuteGlobal 语句使用说明_ASP基础_
- [转]ASP常用函数:TimeZone_ASP基础_
