How to display HTML stored in a database from an ASP.NET MVC view?
The answer provided by Pure.Krome is flawless for MVC2, but consider Razor syntax:
@Html.Raw(System.Web.HttpUtility.HtmlDecode(Model.yourEncodedHtmlFromYourDatabase))
Alternatively,
@Html.Raw(Server.HtmlDecode(Model.yourEncodedHtmlFromYourDatabase))
Try this:
<%= System.Web.HttpUtility.HtmlDecode(yourEncodedHtmlFromYouDatabase) %>
More info here.