How to prevent phone numbers to be converted into Skype links? How to prevent phone numbers to be converted into Skype links? jquery jquery

How to prevent phone numbers to be converted into Skype links?


Try not outputting the numbers as a single piece of text. Instead of

<span>888-555-1212</span>

try

<span>888-</span><span>555-1212</span>

and it will disable skype


Update

This answer is no longer accurate - see Daniel Byrne's answer for more information.


Using CSS only, it can be removed by overriding the styles used by Skype. Try adding these two lines to your stylesheet:

span.skype_pnh_container {display:none !important;}span.skype_pnh_print_container {display:inline !important;} 


Skype has taken to adding a randomly generated string of numbers to the end of their span tag, so the above response from Groo is not entirely accurate anymore. To correctly select all Skype tags on a page, use CSS3 wildcard selectors like such :

span[class^='skype_pnh_container'] {display:none !important;}span[class^='skype_pnh_print_container'] {display:inline !important;}

the ^= operator causes an attribute selector to mach elements that have an class containing a value that STARTS WITH 'skype_pnh_container' and 'skype_pnh_print_container'