我们有一个可以向客户发送运送确认电子邮件的应用程序。跟踪号通过加拿大邮政。当前,当在iOS中查看跟踪号时,允许客户单击跟踪号并重定向到USPS。

http://trackingshipment.apple.com/?Company=USPS&Locale=&TrackingNumber=CanadaPostTrackingNumber

有没有一种方法可以防止iOS预测跟踪号,例如...

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

为电子邮件生成的示例HTML Div。
    <div>
        <h4>Thank you for your recent purchase from Company.</h4>

        <p>Your order has been scanned and a tracking number is now ready.</p>

        <p>Your tracking number is as follows: "This is an unformatted string tracking number."</p>

        <p>If you would like to view the status of your order you can input the tracking number on this page <a href = 'http://www.canadapost.ca/cpotools/apps/track/personal/findByTrackNumber?execution=e2s1'>here.</a></p>
    </div>

最佳答案

只需在HTML页面的开头添加<meta name="format-detection" content="telephone=no">

如果您的电话号码需要链接,请使用<a href="tel:TELEPHONENUMBER">TELEPHONENUMBER</a>

08-05 16:13