C#替换HTML标签

public string RemoveHtml(string str)
    {
        string temp = Regex.Replace(str, "<[^>]*>", "");
        temp = temp.Replace(" ", " ").Replace("&#8221;", "”").Replace("&#8220;","“");
        return temp ;
    }
posted @ 2009-08-24 08:54  94cool  阅读(374)  评论(0)    收藏  举报