Stop iOS from converting phone numbers to blue links

By default, Safari on iOS detects any text that is formatted like a phone number and converts this to a link which allows users to call the number by simply touching it. To prevent the auto formatting simply add below meta-tag within the of the email:

HTML


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

Additionally if your email contains phone numbers and you do not want to deactivate this function, you can target x-apple-data-detectors using the inherit style to adapt to the surrounding styles and overriding the default iOS ones:

HTML


  a[x-apple-data-detectors=true]{
  color: inherit !important;
  text-decoration: inherit !important;
  }

1 Comment

  • James G Finnegan says:

    Hey I have a perl script I’m writing that sends me an email with dates and I’m getting those blue links on some of the dates which are 10 digits in length. I wanted to remove those blue links and I’m trying to add the meta name to the header of the html. However its not working. I’m assuming I can do something like this:

    .blueLinkFix a {color: #000001 !important; text-decoration: none;)

    <table …….
    $watermark

Leave a Reply

Your email address will not be published. Required fields are marked *