2

I have a form with a bunch of plain numbers and telephone.

Like this person, Mobile HTML rendering numbers some of the numbers get rendered as telephones.

Is there a way to prevent the number fields being clickable and rendered as telephones? I already have a tel: link in the telephone . I don't want to use the meta tag to disable all rendering.

Community
  • 1
  • 1
unj2
  • 52,135
  • 87
  • 247
  • 375

2 Answers2

2

Use the format-detection meta tag in your header section:

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

Also you can use "span" in between the numbers (not recommended. coding nightmare):

<span>718</span><span>265</span><span>342</span>

Then use for iPhone and Android:

<a href="tel:1-408-555-5555">1-408-555-5555</a>
Patriotec
  • 1,104
  • 4
  • 22
  • 43
1

Use the metatag to disable format detection for telephone numbers only, then explicitly enable the "tel:" link in the href attribute.

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

...

<a href="tel:5555555555">555-555-5555</a>
Ben Davis
  • 13,112
  • 10
  • 50
  • 65