I have a number of HTML files and am trying to remove a specific block of text using powershell. This block appears in every table.
<tr>
<td colspan="3">
<div id="reportbody">*TEXT*<a target="_blank" href=*LINK*</a></div>
</td>
</tr>
I can do a -replace on the 3rd line to stop the text/link displaying but I see a blank row in the tables. I have tried something similar to this post but I have no unique start/finish markers. Any help greatly appreciated.