博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

.net如何去除富文本中的HTML标签,获得纯文本!

Posted on 2013-08-02 09:17  JmrBrvae  阅读(570)  评论(0编辑  收藏  举报

直接上代码:

public string RemoveHtmlTag(string Str)
        {
            return Regex.Replace(Str, "<[^>]*>", " ");
        }

原文地址:http://blog.sina.com.cn/s/blog_7307f8cb0101a86g.html