Preventing autolinking of emails and URLs in an Android WebView

后端 未结 5 1746
温柔的废话
温柔的废话 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:08

    That appears to be unchangeable functionality of the WebView.

    You could do the opposite of this Is there any way to have WebView auto-link URLs and phone numbers in Android? and create a javascript link stripper (instead of the proposed link injector there).

    Not sure what else would work for this.

提交回复
热议问题