I'm exporting using an HTMLTable in ASP.NET using Response.Write to write all the HTML Table Code to an Excel file.
What I need to do now, is to remove all the Hyperlinks from this Excel file. Is there a better way to do this than to use a Regex?
If a Regex is the best way, how can I just eliminate the tags and not the ID in between?
<td class="header">Details ID</td>
<td>
<div class="id"><a class="details" href="details?id=1232" target="_blank">1232</a></div>
</td>
<td>
<div class="id"><a class="details" href="details?id=1233" target="_blank">1233</a></div>
</td>
<td>
<div class="id"><a class="details" href="details?id=1234" target="_blank">1234</a></div>
</td>
</tr>