views:

326

answers:

1

I have a discussion forum/blog engine working with web forms. Each post contains html entered within an editor that is stored as an nvarchar in SQL server. When I display this in a view, like so:

<%#Eval("body")%>

The eval function escapes the html, so I gt &lt, &gt, yada yada yada. Anyone know a good way around this?

A: 

Not sure it can help, but HtmlEncode is an option

Am
Actually, HtmlDecode, but this is hurting my acceptance rate so I'll take it. =/
David Lively