I just found that there is a meta tag for removing the phone number as a link in HTML on iOS. Does this work with HTML emails?
<meta name="format-detection" content="telephone=no">
But is there one for address and date as well? I have always been writing hacks to over come this but if it's a meta tag that is great! Does anyone know the syntax for address and date?
Yes, there is. You can use:
<meta name="format-detection" content="date=no">
<meta name="format-detection" content="address=no">
<meta name="format-detection" content="email=no">
Combining them:
<meta name="format-detection" content="telephone=no">
<meta name="format-detection" content="date=no">
<meta name="format-detection" content="address=no">
<meta name="format-detection" content="email=no">
I've had luck with:
<style>
a[href^="x-apple-data-detectors:"] {
color: inherit;
text-decoration: inherit;
}
</style>
I think its better to gather them in one meta tag :
<meta name="format-detection" content="telephone=no, email=no, address=no" />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With