/// 除去所有在html元素中标记public static string striphtml(string strhtml) { string stroutput=strhtml; Regex regex = new Regex(@"<[^>]+>|</[^>]+>"); stroutput = regex.Replace(stroutput,""); return stroutput; }