ASP常用函數(shù):HTMLDecode
更新時(shí)間:2007年02月07日 00:00:00 作者:
<%
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
%>
相關(guān)文章
ASP基礎(chǔ)知識(shí)Command對(duì)象講解
這篇文章主要介紹了ASP中Command對(duì)象,是ASP入門(mén)教程,感興趣的小伙伴們可以參考一下2015-09-09ASP中Server.HTMLEncode用法(附自定義函數(shù))
HTMLEncode 方法對(duì)一段指定的字符串應(yīng)用 HTML 編碼,主要是為了安全考慮,這里腳本之家小編就為大家介紹一下2020-02-02如何將長(zhǎng)的標(biāo)題用省略號(hào)收尾
如何將長(zhǎng)的標(biāo)題用省略號(hào)收尾...2007-02-02ASP編程入門(mén)進(jìn)階(十):Global.asa文件
ASP編程入門(mén)進(jìn)階(十):Global.asa文件...2007-01-01