string s=你要清理的字元串; s=Regex.Replace(s,@"/<[^/>]*/>","",RegexOptions.Multiline); 現在的字元串s就是清理了所有的<>内容的了,前提是你的html元素沒有錯誤的嵌套