HtmlEncode

function HtmlEncode(varEncode)
        if not isnull(varencode) then
                htmlencode=server.htmlencode(varencode)
        else
                htmlencode=""
        end if
end function

function HtmlDecode(varEncode)
        if not isnull(varencode) then
                varEncode=replace(varencode,chr(32)&chr(32),"  ")
                varEncode=replace(varencode,chr(10),"<br>")
                varEncode=replace(varencode,"&amp;#","&#")
                varEncode=replace(varencode,"&amp;quot;","&quot;")
                htmldecode=varEncode
        else
                htmldecode=""
        end if
end function

Function unicode(tmpstr)
        unicode=htmldecode(htmlencode(rtrim(tmpstr)))
End Function


arrow
arrow
    全站熱搜
    創作者介紹
    創作者 11 的頭像
    11

    冠霖的部落格

    11 發表在 痞客邦 留言(0) 人氣()