I have been consulted to help with a hacked database which has had lots of link injection in thousands of rows.
The basic format of the link injection appears to always be as follows:
<a href="http://SOME-RANDOM-LINK-HERE.com/" style="text-decoration:none;color:#676c6c">SOME RANDOM TEXT HERE</a>
Essentially I need to delete ALL A tags that contain a style attribute of text-decoration:none;color:#676c6c
I am looking for the fastest solution. Whether it be regular expressions or something else, any guidance is greatly appreciated. Thank you!