I have the following string in my table column
<p>img page <img alt="" src="/fileman/Uploads/Images/Capture.PNG" style="height:255px; width:365px" /></p>
which I display like so in the view:
<dt>
@Html.DisplayNameFor(model => model.Body)
</dt>
However I get the actual string as the output, <p> tags do not actually become <p> tags and the img is not rendered.
How to make it render as html?
@Html.Raw()@Html.Raw(DisplayFor(m=>m.column))will fail. You literally want@Html.Raw(Model.column).