Some of my fields get exported as hyperlinks and I want it to format to standard font and remove hyperlinks. How do I do that in C#?
Asked
Active
Viewed 382 times
1 Answers
0
I used regular expression to remove the javascript behind the column which sorted it out.
string html2 = Regex.Replace(sw.ToString(), @"(<input type=""javascript""\/?[^>]+>)", @"", RegexOptions.IgnoreCase);
html2 = Regex.Replace(html2, @"(<a \/?[^>]+>)", @"", RegexOptions.IgnoreCase);
Response.Write(html2.ToString());

user1800674
- 223
- 1
- 7
- 18