Between tomorrow's dream and yesterday's regret is todays opportunity.
// 除去所有在html元素中标记 using System.Text.RegularExpressions; public static string striphtml(string strhtml) { string stroutput = strhtml; Regex regex = new Regex(@"<[^>]+>|</[^>]+>");
stroutput = regex.Replace(stroutput, ""); return stroutput; }
Copyright @ 2024 bufferi Powered by .NET 9.0 on Kubernetes Powered by: .Text and ASP.NET Theme by: .NET Monster