0

我的一些字段被导出为超链接,我希望它格式化为标准字体并删除超链接。我如何在 C# 中做到这一点?

4

1 回答 1

0

我使用正则表达式来删除排序它的列后面的 javascript。

string html2 = Regex.Replace(sw.ToString(), @"(<input type=""javascript""\/?[^>]+>)", @"", RegexOptions.IgnoreCase);
html2 = Regex.Replace(html2, @"(<a \/?[^>]+>)", @"", RegexOptions.IgnoreCase);
Response.Write(html2.ToString());
于 2014-08-19T09:35:31.190 回答