Place a tel: link in KB Article user can click on Mobile

jonmulherin
Giga Expert

I've been trying to get a telephone number to show up as a clickable link within a KB article so mobile app / browser users can click the number to call our support desk and various other departments within the business.   I've tried Insert Link and putting tel:####### to no avail.   I've also tried <a href="tel:5551234567">Call (555)123-4567</a> both using the insert link function and just by pasting it in the Test field.   The article type is set to HTML but I can't seem to get the result I'm looking for.

I did find this post by Matthew Watkins, How do I set up a hyperlink that will not ask the user to navigate away from the page? but I don't know how I could use this from within a KB Article.

Any suggestions / ideas / and especially a working solution would be greatly appreciated.

3 REPLIES 3

Uncle Rob
Kilo Patron

I've never tried this before, but I *HAVE* had my HTML corrupted more than once in KB creation.   First thing I'd do is output the raw HTML of the KB article to see if yours got edited in some way.


Mike Rae
Kilo Guru

You need to update the HTML Sanitize white list to allow the tel protocol to be used.   Edit the HTMLSanitizerConfig script include and update the HTML_WHITELIST property to look like this:

HTML_WHITELIST: {
urlAttributes: { "protocols" : [ "http", "https", "tel" ] },
globalAttributes: {
attribute: [],
attributeValuePattern: {}
}
},

HI Mike,

Can we limit this sanitation to just KB articles or it will impact the entire platform?

 

Thanks!!

Krishna