I have a repeater and am binding a List<Event> to it.
An Event has a property, Details, which contains some HTML mark-up in it. I’m displaying that property inside my <ItemTemplate> as such:
<%# ((Event)Container.DataItem).Details %>
The html mark-up is escaped in the database. So a detail might look like this in the database:
<strong>Blah blah blah</strong>
After databinding, it looks like this on the page (but in the source, still matches what’s in the database):
<strong>Blah blah blah</strong>
But what I need is for it to look like this:
Blah blah blah
I’m really at a loss for how to make that happen though, without going through the database and doing a massive find & replace, which isn’t really an option since I’d also have to change the mechanism that inserts the data.
You’ll need to use HttpUtility.HtmlDecode to convert back to regular Html.