Wednesday, July 18, 2012

How to display raw html tag in ASP.NET razor view?

<div class='content'>   
   @MvcHtmlString.Create(HttpUtility.HtmlDecode(Model.Content));
</div>

1 comment:

  1. It's the first time when I've seen your site. I can see lots of hard work has gone in to it. It's actually good.
    restore hard drive

    ReplyDelete