iphone - How to disable phone number linking in Mobile Safari?

ID : 6975

viewed : 165

Tags : iphonesafarimobile-safariiphone





Top 5 Answer for iphone - How to disable phone number linking in Mobile Safari?

vote vote

93

This seems to be the right thing to do, according to the Safari HTML Reference:

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

If you disable this but still want telephone links, you can still use the "tel" URI scheme.

Here is the relevant page at Apple's Developer Library.

vote vote

89

I use a zero-width joiner &zwj;

Just put that somewhere in the phone number and it works for me. Tested in BrowserStack (and Litmus for emails).

vote vote

75

To disable the phone parsing appearance for specific elements, this CSS seems to do the trick:

.element { pointer-events: none; } .element > a { text-decoration:none; color:inherit; } 

The first rule disables the click, the second takes care of the styling.

vote vote

67

Add this, I think it is what you're looking for:

<meta name = "format-detection" content = "telephone=no"> 
vote vote

52

I was having the same problem. I found a property on the UIWebView that allows you to turn off the data detectors.

self.webView.dataDetectorTypes = UIDataDetectorTypeNone; 

Top 3 video Explaining iphone - How to disable phone number linking in Mobile Safari?







Related QUESTION?