C# HTMLTextWriter删除C中的超链接和格式
我的一些字段被导出为超链接,我希望将其格式化为标准字体并删除超链接。如何在C中实现这一点?我使用正则表达式删除了排序列后面的javascriptC# HTMLTextWriter删除C中的超链接和格式,c#,asp.net,htmltextwriter,C#,Asp.net,Htmltextwriter,我的一些字段被导出为超链接,我希望将其格式化为标准字体并删除超链接。如何在C中实现这一点?我使用正则表达式删除了排序列后面的javascript string html2 = Regex.Replace(sw.ToString(), @"(<input type=""javascript""\/?[^>]+>)", @"", RegexOptions.IgnoreCase); html2 = Regex.Replace(html2, @"(<a \/?[^>]+&g
string html2 = Regex.Replace(sw.ToString(), @"(<input type=""javascript""\/?[^>]+>)", @"", RegexOptions.IgnoreCase);
html2 = Regex.Replace(html2, @"(<a \/?[^>]+>)", @"", RegexOptions.IgnoreCase);
Response.Write(html2.ToString());