Regex regex = new Regex(@"<[^>]+>|</[^>]+>");
string res = regex.Replace(str,"");
C# 去除html标签
最新推荐文章于 2023-07-13 15:51:32 发布
Regex regex = new Regex(@"<[^>]+>|</[^>]+>");
string res = regex.Replace(str,"");