Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML Email iOS format-detection

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?

like image 658
Travis Avatar asked Jan 19 '15 14:01

Travis


3 Answers

Yes, there is. You can use:

  • Date: <meta name="format-detection" content="date=no">
  • Address: <meta name="format-detection" content="address=no">
  • Email: <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">
like image 109
Anonymous Avatar answered Nov 15 '22 02:11

Anonymous


I've had luck with:

<style>
  a[href^="x-apple-data-detectors:"] {
    color: inherit;
    text-decoration: inherit;
  }
</style>
like image 31
Jason Axelson Avatar answered Nov 15 '22 01:11

Jason Axelson


I think its better to gather them in one meta tag :

<meta name="format-detection" content="telephone=no, email=no, address=no" />
like image 5
Mehde mohamad Avatar answered Nov 15 '22 03:11

Mehde mohamad