Using hyphen - iPhone OS thinks it's a phone number...

Discussion in 'iOS Programming' started by bitfactory, Apr 3, 2009.

  1. macrumors regular

    bitfactory

    Joined:
    Jul 22, 2002
    #1
    Hi Folks,

    I'm build an iPhone web app, and I discovered that when I display some data with a hyphen - it displays it as a link - the phone thinks it's a telephone number.

    Here's what's being displayed:
    <span>72-04756</span>

    It creates a break before and after this number, and turns it into a link.

    Any ideas how to display this number without the phone thinking it's a phone number? I thought the only time the phone would trigger a phone number with with a <a href="tel:555-555-5555"> link.

    ???
     
  2. thread starter macrumors regular

    bitfactory

    Joined:
    Jul 22, 2002
    #2
    NM, I found it:

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

    Thanks - Art
     
  3. macrumors 6502a

    Joined:
    Jun 5, 2007
    #3
    i don't think the hyphen was the problem --- i would think the fact that it's a 7-digit number would confuse it

    just my thoughts
     

Share This Page