PDA

Click to See Complete Forum and Search --> : HTML tags in text fields


samba
Jul 12th, 2000, 05:31 PM
Hello;
I am having trouble saving HTML special charecters like &uuml, &copy, &nbsp etc., in text fields.

When I first write this syntax in the text field it is saved in the DB eg &uuml is saved.

The problem comes when i reload this field in the text box. It displays the special charecter 'u' with a dot on each leg. Now when i save it again, it saves the special charecter 'u' to the database, and not &uuml. I want it to save &uuml and not the special charecter 'u'.

I would appreciate if you could help.

Thanks
Samba

noone
Jul 12th, 2000, 06:07 PM
Try using the server.HTMLEncode method:
strToSave = server.HTMLEncode(Request.Form("input"))

samba
Jul 13th, 2000, 02:47 AM
It worked. Thanks