I am creating an asp.net MVC application, and I am using rich text in order to store rich text inside my database.
While fetching the rich text from the database and displaying it on the Details page, I no longer see the formatted data. Rather I see the the plain html (for example < p>< b>< strong>rich text sample< /strong>< /b>< /p>).
How can I display rich text as it is formatted and not as plain html using an Html text helper like Html.TextArea?
[AllowHtml]
public string Description { get; set; }
I have tried setting my View for the Description like this instead of DisplayFor, but it still doesn't work:
<dd>
@Model.Description
@*@Html.DisplayFor(model => model.Description)*@
</dd>