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