标签:
1、去除数据HTML标签,并控制字数
@Common.ReplaceHtml(@string Contents,string length)
例:@Common.ReplaceHtml(@item.Description,200)
2、格式化文本编辑器内容
@Html.Raw(Common.Format(string Contents))
例:@Html.Raw(Common.Format(Model.lstNews[0].Contents))
标签:
原文地址:http://www.cnblogs.com/xiaozhuzhuandxiaomoney/p/5827274.html