过滤html标签:用C#过滤所有HTML标签来源: 发布时间:星期四, 2009年2月12日 浏览:246次 评论:0
/// 除去所有在HTML元素中标记 public StripHTML( strHtml) { strOutput=strHtml; Regex regex = Regex(@\"<[^>]+>|[^>]+>\"); strOutput = regex.Replace(strOutput,\"\"); strOutput; } 1
相关文章读者评论发表评论 |
|