|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
||||
|
||||
|
Reverse HTMLEncode
hey, any of you guys know how to reverse server.htmlencode()? is there a built-in function im missing here?
|
|
#2
|
||||
|
||||
|
I don't know of any built in function to reverse the .htmlencode() method. (You mean to take a string like "The paragraph tag: <P>" and output "The paragraph tag: <P>", so that the browser shows "The paragraph tag: <P>"?)
Why do you want to do this? |
|
#3
|
||||
|
||||
|
coz im trying to save some html tags in a db field. its much more safer to convert the tags and quotes first with htmlencode when saving to a db. the problem comes when retrieving and displaying the contents of the field.
|
|
#4
|
|||
|
|||
|
I couldn't agree more with changing it to a db, but when you print < it prints out the < to screen, is something hindering this in your case?
No, i don't think there's a decode or anything like that. You could try converting everything to their IIRC equivilants instead and then use AscW() and Hex() to convert them back to their original HTML form i think... |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Reverse HTMLEncode |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|