前端cshtml里面需要decode时使用

@Html.Raw(HttpUtility.HtmlDecode(Model.Contents))

对应的action里需要encode的地方使用

HttpUtility.HtmlEncode(collection["newsContentData"]);

 

posted on 2013-06-27 14:31  smallerpig  阅读(518)  评论(0编辑  收藏  举报