I have a controller which generate string containing html markups.Now when I am displaying it on views, it is displayed as simple string containing all tags. I tried to u
you can use @Html.Raw(str)
@Html.Raw(str)
See MSDN for more
Returns markup that is not HTML encoded. This method wraps HTML markup using the IHtmlString class, which renders unencoded HTML.
Returns markup that is not HTML encoded.
This method wraps HTML markup using the IHtmlString class, which renders unencoded HTML.