I am working on an ASP.NET MVC 5 application and using tinymce editor to store HTML formatted data (for certain fields) to a SQL Server 2014 database.
The data is being returned to the page using a foreach loop, but the tags/markup are not being rendered as HTML and instead are showing up in the page as text.
CODE EX:
@foreach (var item in Model) {
<div>@Html.DisplayFor(modelItem => item.Category)</div>
<div>@Html.DisplayFor(modelItem => item.Name)</div>
<div>@Html.DisplayFor(modelItem => item.Description)</div>
}
How do I get the stored HTML to render properly when returned to the page?