ASP常用函数:HTMLDecode
发布时间:2016-12-29 来源:查字典编辑
摘要:
<%
FunctionHTMLDecode(sText)
DimI
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))
ForI=1To255
sText=Replace(sText,""&I&";",Chr(I))
Next
HTMLDecode=sText
EndFunction
%>