The CreatorCon Call for Content is officially open! Get started here.

"Click to call" phone numbers work in some places but not others?

carlh
Kilo Guru

Hi All,  

I noticed that some phone numbers are "clickable" and some are not.

I have it working on a record producer and it works using Edge but not IE...

Edge: Shows up as a hyperlink

find_real_file.png

IE - Does not

find_real_file.png

Does anyone know how to make the phone be clickable so you can click and launch Skype?

Thanks,

Carl

12 REPLIES 12

Hi Jonathan,

Please note that to protect against security concerns, Servicenow removes some of the tags from HTML. And href="tel is one of those tags.

 

You may add your tag to the HTML Sanitizer whitelist in servicenow and it will not automatically remove/filter the tag from html.

Below link has more information:

https://docs.servicenow.com/bundle/jakarta-platform-administration/page/administer/security/concept/c_HTMLSanitizer.html

Thanks for the info. I was able to follow the documentation and implement a correction that allowed the tel links.

 

For anyone else, I edited the global.HTMLSanitizerConfig script include to the following

 

var HTMLSanitizerConfig = Class.create();
HTMLSanitizerConfig.prototype = {
	initialize: function() {
	},
	
	HTML_WHITELIST : {
		globalAttributes: {
			attribute:[],
			attributeValuePattern:{}
		},
		urlAttributes: { 
			protocols : [ "tel" ] 
		}
	},
	
	HTML_BLACKLIST : {
		globalAttributes: {},
	},
	
	getWhiteList : function() {
		return this.HTML_WHITELIST;
	},
	
	getBlackList : function() {
		return this.HTML_BLACKLIST;
	},
	
	type: 'HTMLSanitizerConfig'
}

Ripu Daman1
Tera Expert

 

Note: In order to protect against security concerns, Servicenow removes some of the tags from HTML. And href="tel is one of those tags.

 

You may add your tag to the HTML Sanitizer whitelist in servicenow and it will not automatically remove/filter the tag from html.

Below link has more information:

https://docs.servicenow.com/bundle/jakarta-platform-administration/page/administer/security/concept/c_HTMLSanitizer.html