# Any way to allow href=tel: telephone anchor links in posts?

**URL:** <https://meta.discourse.org/t/any-way-to-allow-href-tel-telephone-anchor-links-in-posts/52263>\
**Category:** Support\
**Created:** [2016年十月31日 11:51 UTC](https://meta.discourse.org/t/any-way-to-allow-href-tel-telephone-anchor-links-in-posts/52263 "2016-10-31T11:51:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ewanyork](https://avatars.discourse-cdn.com/v4/letter/e/6bbea6/32.png) [@ewanyork](https://meta.discourse.org/u/ewanyork)\
**Post date:** [2016年十月31日 11:51 UTC](https://meta.discourse.org/t/any-way-to-allow-href-tel-telephone-anchor-links-in-posts/52263/1 "2016-10-31T11:51:17Z")

</div>

Hello,

We’d like to put links to telephone numbers in Discourse posts, using the href=“tel:xxxx-xxxx-xxx” protocol. I’ve tried doing so using raw HTML anchor links and with Markdown, but Discourse always removes the href attribute totally and leaves us just with a plain anchor link without a target.

Is there any way I can achieve this? I can’t find a setting to change, so am wondering if it’s possible to escape the string in some way to prevent Discourse parsing and removing this? Since Discourse works so nicely on mobile, it seems a shame to completely prohibit tel: links.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2016年十月31日 12:18 UTC](https://meta.discourse.org/t/any-way-to-allow-href-tel-telephone-anchor-links-in-posts/52263/2 "2016-10-31T12:18:28Z")

</div>

@neil added support for custom URI href protocols so it should work if enabled in your site settings under `allowed href schemes`.

`<a href="tel:1-562-867-5309">1-562-867-5309</a>`

I’m not 100% sure this one will work since it doesn’t follow the `uri://` scheme though.

There are a lot of these:

> **[Uniform Resource Identifier (URI) Schemes](http://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml)**

---

<div class="post-metadata">

**Author:** ![ewanyork](https://avatars.discourse-cdn.com/v4/letter/e/6bbea6/32.png) [@ewanyork](https://meta.discourse.org/u/ewanyork)\
**Post date:** [2017年一月26日 11:50 UTC](https://meta.discourse.org/t/any-way-to-allow-href-tel-telephone-anchor-links-in-posts/52263/6 "2017-01-26T11:50:28Z")

</div>

Quick update for anyone else who’s interested: we now have the latest Discourse update and can confirm this is working, _but_ only if the phone number is prefixed with `tel://` (rather than just `tel:` which is the standard). I can confirm the links still work and are diallable!

Can’t be done with Markdown but works fine if the full HTML link is inserted.

Great stuff.

---

<div class="post-metadata">

**Author:** ![Alaa](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@Alaa](https://meta.discourse.org/u/Alaa)\
**Post date:** [2018年十二月18日 12:33 UTC](https://meta.discourse.org/t/any-way-to-allow-href-tel-telephone-anchor-links-in-posts/52263/7 "2018-12-18T12:33:42Z")

</div>

> [@ewanyork](#):
>
> tel://

Thank you for this 😊

---

<div class="post-metadata">

**Author:** ![ewanyork](https://avatars.discourse-cdn.com/v4/letter/e/6bbea6/32.png) [@ewanyork](https://meta.discourse.org/u/ewanyork)\
**Post date:** [2018年十二月18日 14:04 UTC](https://meta.discourse.org/t/any-way-to-allow-href-tel-telephone-anchor-links-in-posts/52263/8 "2018-12-18T14:04:34Z")

</div>

Glad to be of help! Good luck 🙂

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [2021年十一月7日 14:14 UTC](https://meta.discourse.org/t/any-way-to-allow-href-tel-telephone-anchor-links-in-posts/52263/9 "2021-11-07T14:14:23Z")

</div>


