How to render HTML string in ASP.NET MVC?
You can use the Html.Raw()
method for that.
And if you are using model in your view than use:
@model YourApp.Models.YourModel
....
@Html.Raw(@Model.NameOfYourProperty)
You can use the Html.Raw()
method for that.
And if you are using model in your view than use:
@model YourApp.Models.YourModel
....
@Html.Raw(@Model.NameOfYourProperty)