I have a html string come from the api service, for example :
<html><body><a href="testFunction" target = blank>link test</a>...</body></html>
Please note that I put the html string in UILabel and not in uiwebView
And in my ViewController.swift, I have a function :
func testFunction() {
print("I am here")
}
What I need is how to call the function testFunction when the user click on the link test?
Thanks,