Preventing autolinking of emails and URLs in an Android WebView

后端 未结 5 1783
温柔的废话
温柔的废话 2021-02-10 00:48

I have a WebView which may contain data that appears to be getting \"auto linked\". Something that looks like an email address is becoming clickable, even though i

5条回答
  •  后悔当初
    2021-02-10 01:02

    Hi Squeaggy why you do want to eliminate that funcionality from the webview, but well a tricky way would be including onClick="return false;" in the anchor tag that contains the email or URL.

    jorgesys@elnorte.com
    

提交回复
热议问题