Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/329.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# HTMLTextWriter删除C中的超链接和格式_C#_Asp.net_Htmltextwriter - Fatal编程技术网

C# HTMLTextWriter删除C中的超链接和格式

C# 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

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

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

string html2 = Regex.Replace(sw.ToString(), @"(<input type=""javascript""\/?[^>]+>)", @"", RegexOptions.IgnoreCase);
html2 = Regex.Replace(html2, @"(<a \/?[^>]+>)", @"", RegexOptions.IgnoreCase);
Response.Write(html2.ToString());