Override external URL action

So here’s my situation, I hope you can help me out

  • on an App, i have an external URL that i get from my WordPress Posts. this is how the element appears
<a target="_blank" rel="noopener noreferrer" href="https://whateverdomain.co.za/"><strong><u>Stream song now</u></strong></a>
  • when I click on it; instead of opening the external or InApp browser. I Want to execute my own function

any suggestions on how to do this or code Snippets would be highly Appreciated
Thank You