Problem with the Egde browser. Interpret as a link a text without me indicating it

2

I have a piece of html code that works well for all the browsers I've tried, except for Egde in Win 10.

I do not know why this browser tries to format part of my text as if it were a link when I did not indicate it.

Any suggestions to solve it?

This is the html code

<!DOCTYPE html>
<html>
<body>
<span style="color:red">( 983 )2018-04-04 18:20:54  [email protected] </span>
</body>
</html>

And this is what I get on the screen when I run it.

    
asked by emgodi 05.04.2018 в 10:44
source

1 answer

3

Edge has a default "format detector" that analyzes the text and formats it.

To avoid this, there are two solutions:

1.- Add the following goal in the head of the document:

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

2.- Add the attribute x-ms-format-detection="none" to the element:

<body x-ms-format-detection="none">
	<span style="color:red" >( 983 )2018-04-04 18:20:54  [email protected] </span>
</body>

Information about the x-ms-format-detection attribute

    
answered by 05.04.2018 / 10:54
source