Preventing autolinking of emails and URLs in an Android WebView

后端 未结 5 956
谎友^
谎友^ 2021-02-10 00:13

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 00:51

    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.

提交回复
热议问题