Link to home
Create AccountLog in
Avatar of Webbo_1980
Webbo_1980

asked on

how do i display html on a page without showing tags in the content such as &quote

I have some data stored in my db e.g.

 a &quote;conference&quote; and the Clumsies call a &quote;holiday&quote;!Will

All i do is dispaly this in text box but for some reason its rendering as its stored in when viewed in a browser.

What command does asp.net offfer which will render this correctly?

Thanks
Webbo
Avatar of Deja Anbu
Deja Anbu
Flag of Oman image

use Server.HtmlDecode(UR STRING VARIABLE)

or u can use a html textbox editor like ckeditor
Avatar of Webbo_1980
Webbo_1980

ASKER

htmldecode was teh first thing i tried but it doesnt work on the example i gave above i.e.

 HttpUtility.HtmlDecode(

Open in new window


Any ideas why?
ASKER CERTIFIED SOLUTION
Avatar of Alfred A.
Alfred A.
Flag of Australia image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer