Safari on iPhone automatically creates links for strings of digits that appear to the telephone numbers. I am writing a web page containing an IP address, and Safari is turning that into a phone number link. Is it possible to disable this behavior for a whole page or an element on a page?
Add this, I think it is what you're looking for:
<meta name = "format-detection" content = "telephone=no">
This seems to be the right thing to do, according to the Safari Web Content Guide for iPhone:
<meta name="format-detection" content="telephone=no">
If you disable this but still want telephone links, you can still use the "tel" URI scheme.
works on Iphone, but not on Ipod, at least on 3.0 => I must use htmlentities
If you add your web app to the home screen it stops working. Looks like only works when the app is accessed from Safari. Any ideas?
Think I've found a solution: put the number inside a <label>
element. Haven't tried any other tags, but <div>
left it active on the home screen, even with the telephone=no
attribute.
It seems obvious from earlier comments that the meta tag did work, but for some reason has broken under the later versions of iOS, at least under some conditions. I am running 4.0.1.