TL;DR
<head>内に定義するmeta name="format-detection"にはaddressやemailなど指定ができるが、以下のようにtelephoneだけで良い。
<meta name="format-detection" content="telephone=no" />主にiOSデバイス向けに電話番号がリンクになるのを抑制するために使用する。
meta format-detectionとは
meta name="format-detection"とは、HTML内で電話番号や日付、住所などの自動リンク化を制御するために使用するメタタグである。主にモバイルブラウザで電話番号などのテキストが自動的にリンク化されるのを制御する際によく使われる。
もともと、このタグはAppleが独自に定義したものであり、ブラウザによってサポート状況や仕様はまちまちである。
format-detection
Enables or disables automatic detection of possible phone numbers in a webpage in Safari on iOS.
Syntax
<meta name="format-detection" content="telephone=no" />Discussion
By default, Safari on iOS detects any string formatted like a phone number and makes it a link that calls the number. Specifying
telephone=nodisables this feature.Support Level
Apple extension.
構文
<meta name="format-detection" content="telephone=no" />利用可能な指定
このメタタグのcontent属性には、telephone以外にも以下のような指定ができる。Androidでは電話番号以外のテキストも自動リンクになるケースがあるようだった。
telephone=no: 電話番号の自動リンク化を無効にするdate=no: 日付の自動リンク化を無効にするaddress=no: 住所の自動リンク化を無効にするemail=no: メールアドレスの自動リンク化を無効にする
こちらの指定はmetaタグ自体を複数列挙も可能だが、これらをカンマで区切って複数指定も可能である。
<meta name="format-detection" content="telephone=no, date=no" />