.net c# escaping html characters

Soldato
Joined
18 Oct 2002
Posts
4,925
Location
Yorkshire
at the moment when i'm outputting content from the database it appears to be encoding the html characters to e.g < = &lt; and so on.

How can I stop it doing this as I need it to output the correct html on the page ?

Ignore this, was outputting it using a div's innerText attribute , switched to using a label control and it seems to work fine now
 
Last edited:
Back
Top Bottom