hello,
i'd like to know what the regex to strip onclick even from a href tag?
ex. i have this code:
<a href=" onClick="return trackclick(' 'Michael Medved USA Today''Campaign \'08 Hasn\'t Followed the Script');">Campaign '08 Hasn't Followed the Script</a>
i need this code:
<a href=" >Campaign '08 Hasn't Followed the Script</a>
as you can see onclick even has redundant code that i don't need and i need to strip it leaving only href url.
Thank you in advance
i'd like to know what the regex to strip onclick even from a href tag?
ex. i have this code:
<a href=" onClick="return trackclick(' 'Michael Medved USA Today''Campaign \'08 Hasn\'t Followed the Script');">Campaign '08 Hasn't Followed the Script</a>
i need this code:
<a href=" >Campaign '08 Hasn't Followed the Script</a>
as you can see onclick even has redundant code that i don't need and i need to strip it leaving only href url.
Thank you in advance