0

I want to use System.Web.HttpUtility.HtmlDecode with WebGrid but it is not working my code is :

grid.GetHtml(tableStyle: "webGrid",
             htmlAttributes: new { id = "DataTable" },
             headerStyle: "header",
             alternatingRowStyle: "alt",
             columns: grid.Columns(
                 grid.Column("ArtId"),
                 grid.Column(columnName: "ArtDescription",
                                         format: item => System.Web.HttpUtility.HtmlDecode(item.ArtDescription))
             )
 ) 
tereško
  • 58,060
  • 25
  • 98
  • 150
shailendra
  • 205
  • 1
  • 8
  • 21

1 Answers1

1

You should use Html.Raw:

format: item => Html.Raw(item.ArtDescription)
Mike Brind
  • 28,238
  • 6
  • 56
  • 88