我想在WebGrid中使用System.Web.HttpUtility.HtmlDecode但它不能正常工作 我的代码是:
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))
)
)