会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
锋少
博客园
首页
新随笔
联系
订阅
管理
2016年8月19日
过滤字符串中的html标签
摘要: C#中,我们有时需要过滤掉字符串中的部分html标签,以下是一些简单的html标签过滤方法,使用的主要方式是正则表达式 public static string ClearHtml(string html) { if(string.IsNullOrEmpty(html)) { return ""; ...
阅读全文
posted @ 2016-08-19 17:55 NightKey
阅读(3659)
评论(0)
推荐(1)
编辑
公告