string StrHavehtml="<html>Test Delete the <span>HTML</span> Code!</html>";

string StrNohtml=System.Text.RegularExpressions.Regex.Replace(StrHavehtml, "<[^>]+>", "");

posted on 2008-07-18 15:05  Miler  阅读(546)  评论(1编辑  收藏  举报