HTMLDecode Function
ASP Has a useful Server.HTMLEncode feature but there is no HTMLDecode. This is a simple way to overcome that.
Rate HTMLDecode Function
(2(2 Vote))
Function HTMLDecode(sText)
Dim I
sText = Replace(sText, """, Chr(34))
sText = Replace(sText, "<" , Chr(60))
sText = Replace(sText, ">" , Chr(62))
sText = Replace(sText, "&" , Chr(38))
sText = Replace(sText, " ", Chr(32))
For I = 1 to 255
sText = Replace(sText, "&#" & I & ";", Chr(I))
Next
HTMLDecode = sText
End Function
HTMLDecode Function Comments
No comments yet — be the first to post one!
Post a Comment