Two options…
format-detection
meta tag.To remove all auto-formatting for telephone numbers, add this to the head
of your html
document:
<meta name="format-detection" content="telephone=no">
View more Apple-Specific Meta Tag Keys.
Note: If you have phone numbers on the page with these numbers you should manually format them as links:
<a href="tel:+1-555-555-5555">1-555-555-5555</a>
css
?Two css
options:
Target links with href
values starting with tel
by using this css attribute selector:
a[href^="tel"] {
color: inherit; /* Inherit text color of parent element. */
text-decoration: none; /* Remove underline. */
/* Additional css `propery: value;` pairs here */
}
Alternatively, you can when you can’t set a meta tag—such as in html email—wrap phone numbers in link/anchor tags (<a href=""></a>
) and then target their styles using css similar to the following and adjust the specific properties you need to reset:
a[x-apple-data-detectors] {
color: inherit !important;
text-decoration: none !important;
font-size: inherit !important;
font-family: inherit !important;
font-weight: inherit !important;
line-height: inherit !important;
}
If you want to target specific links, use classes on your links and then update the css selector above to a[x-apple-data-detectors].class-name
.