您现在的位置是:网站首页> 编程资料编程资料

ASP常用函数:HTMLDecode_ASP基础_

2023-05-25 170人已围观

简介 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
%>

-六神源码网