this might be simple, but I’ve spent ages searching and googling, I’ve come close, but no cigar…
Is anyone able to whip me up a little script to delete all instances of
<a href="http://mysite.com/search?mode=results&queries_name_query="></a>
in the body of a HTML doc?
My tags are generated by JS and they always print an extra blank href so hopefully another quick script to remove them can clear this up?
All help and helpful advice is always very much appreciated.
My gut tells me you probably just want to alter the script that’s creating them to prevent it from happening, but if you really can’t do that, something like the following should get rid of all of ’em in a quick-‘n-dirty kind of way…