How to remove a auto hyperlinked phone number from Microsoft Edge

荒凉一梦 提交于 2019-12-01 22:37:37

问题


I have time stamps on a web application in the form of

1 2015-08-06 15:16:54

which keeps getting decorated by Microsoft Edge browser as phone number links. I do not want this. Apparently, this is a 'tel' protocol and clicking on it will try to open whatever application is configured to work with the 'tel' protocol. I know there is a meta tag you can add to pages to prevent them being decorated as such on iOS devices, but how would I do this on the Microsoft Edge browser?


回答1:


The solution that works for iOS devices also works for Microsoft Edge.

Adding the meta tag,

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

will prevent the DOM document from being modified when parsed by the browser.

See: https://developer.apple.com/library/safari/featuredarticles/iPhoneURLScheme_Reference/PhoneLinks/PhoneLinks.html and How to remove phone number link on Iphone?

MSDN reference link: https://msdn.microsoft.com/en-us/library/dn265018(v=vs.85).aspx



来源:https://stackoverflow.com/questions/31867068/how-to-remove-a-auto-hyperlinked-phone-number-from-microsoft-edge

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!