@kastork The example above should intercept all anchors and make sure the WebView does nothing with them. On click, hostServices called to open the URL instead. In this naive implementation I just do
a.toString()
but you might need to cast it to retrieve the actual URL.