Disabling data detectors for a specific HTML element in a UIWebView

In WKWebView Disable all Data Detector Types in Attributes inspector. This will solve your problem


you should use <meta name = "format-detection" content = "telephone=no">

Hope it helps


If you control the web content you can use jscript (via jquery) to write your own data detectors. If you don't control the content you could insert and execute the jscript using stringByEvaluatingJavaScriptFromString: once webViewDidFinishLoad: is called.


you can put the attribute

x-apple-data-detectors="false"

but unfortunately this seems to work only for tags. I ended up using this solution:

<a href="#" x-apple-data-detectors="false">666-777-777</a>

besides disabling the telephone numbers "detection", this also prevents adresses and other detection to run.