Disabling Telephone Number Formatting in Microsoft Edge

Posted on 5th August 2015 in Code, Tips.

After finally getting around to upgrading my work PC to Windows 10, I was really impressed with Microsoft’s latest browser: Microsoft Edge. It provided a much needed modernisation to Internet Explorer to allow it to compete with browsers such as Google Chrome and Mozilla Firefox.

However, one of the things with this browser that got to me was the fact that Edge likes to add a clickable link to any number in the content of your website, even if you have no desktop phone application installed. This feature makes much more sense to just keep on mobile phones, so you can prevent Microsoft Edge from doing this by placing the following attribute on any container x-ms-format-detection="none".

For example:

This will now disable the format detection behaviour for Microsoft Edge!

Tags

Sharing