HTML Prevent automatic phone number links

If a user has Skype or another voice call-related software, their web browser may attempt to turn phone numbers into links. 

Typically, this is not an issue. However, the browser will typically use the standard blue link color. If you have a dark background, it will make the phone number difficult to see.

I was able to prevent the browser from identifying the phone number by using a combination of HTML escape codes and tags.
Phone: 1-8&#48;&#48;<span>-</span>62&#48;<span>-</span>38&#48;3
Posted by
Snippet Viewed 1589 times.

Share your HTML code snippets:

  • Get some recognition & a link back to your site.
  • Create your own code library.
  • Help your fellow developers, as they have helped you.

 

Submit | Browse

Most Recent html snippets

Most Viewed