Hi I have managed to update the HTML in the databse in Encoded Format to my database using the Server.HTMLEncode method. Is there any way of decoding it back to how it was?
Function StringConvert(strHTML)
Dim strOutput
strOutput = Replace(strHTML, "<", "<")
strOutput = Replace(strOutput, ">", ">")
StringConvert = strOutput
End Function
Response.Write(StringConvert(strTEXT))
well hmm... you must change the first instance of "<" with the &-l-t-; and the second replace first instance of > with &-g-t-; without the dashes(-) because i can't post it here.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.