I have a CodeIgniter system that can send messages to an app. The messages are sent as HTML and injected into a WebView in the app. However, on iOS, any links in the HTML cannot be clicked.
I've read that, for some reason, you have to manually add click event listeners to the links and call the fireEvent method with the url. If I want to do that, I'd have to modify the HTML before it is returned from the server. How can I scan through the HTML (as a string) and insert onClick attributes?
Or, is there a way to simply enable the app to open the links naturally, like Android does? At this stage it doesn't matter if they open in the WebView or Safari.