【发布时间】:2014-10-12 05:24:39
【问题描述】:
我的一些字段被导出为超链接,我希望它格式化为标准字体并删除超链接。我如何在 C# 中做到这一点?
【问题讨论】:
标签: c# asp.net htmltextwriter
我的一些字段被导出为超链接,我希望它格式化为标准字体并删除超链接。我如何在 C# 中做到这一点?
【问题讨论】:
标签: c# asp.net htmltextwriter
我使用正则表达式删除了排序它的列后面的 javascript。
string html2 = Regex.Replace(sw.ToString(), @"(<input type=""javascript""\/?[^>]+>)", @"", RegexOptions.IgnoreCase);
html2 = Regex.Replace(html2, @"(<a \/?[^>]+>)", @"", RegexOptions.IgnoreCase);
Response.Write(html2.ToString());
【讨论】: