ASP常用函数:HTMLDecode
2007-02-07 00:00
706 查看
<%
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
%>
相关文章推荐
- ASP常用函数:HTMLDecode
- [导入]ASP常用函数:HTMLFilter()
- ASP常用的函数模块 http://www.cnblogs.com/cnnix/archive/2006/07/16/452286.html
- ASP常用的几个功能模块封装成函数调用(登录验证,状态切换。。) http://www.tsingfeng.com/archives/?article-89.html
- Asp.net(C#)常用函数表
- 常用Oracle分析函数详解 [http://www.cnblogs.com/benio/archive/2011/06/01/2066106.html]
- ASP.NET中的27个常用函数
- Asp.net(C#)常用函数表
- ASP.NET 常用函数表
- ASP.NET常用函数
- asp保存textarea遇到空格,换行等字符转换html的函数
- asp.net常用函数
- asp 中常用的文件处理函数
- 我在PHP中混淆的三组函数总结(htmlentities,html_entity_decode,addslashes)
- ASP.NET常用函数
- asp常用函数集合,非常不错以后研究第1/4页
- asp 常用函数大全
- C#常用函数表及Asp.net(C#)常用函数表
- asp中文件与文件夹常用处理函数(文件后缀、创建
- asp CutStrX字符串截取函数(过滤全部HTML标记)