So, I have a wordpress like website in ASP.Net MVC 5, where I can create website for my customers. Now one of the customer's website needed a text box to add a html content. So, I added [AllowHTML] for that text box, so I am able to successfully save textbox content to DB. Now my question is how to render in front end. I mean I have a model property as
public string htmlcontent {get;set;}
and the value I am getting from Database is
<p>abc</p>.
Now what is the best way to render it in my cshtml file. If I do something like
@Model.htmlcontent
My output is simply <p>abc</p> as Plain TEXT But I want the DOM to understand the html content and attributes and render it accordingly.