Sms links cleaned out of html | Community
Skip to main content
Level 2
April 5, 2019
Solved

Sms links cleaned out of html

  • April 5, 2019
  • 2 replies
  • 1269 views

We are trying to implement an sms link in a text component but it keeps getting cleaned out of the HTML. Please can someone advise how we can fix this? Example below:

<a href="sms://+14035550185">

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by arunpatidar

The links are getting removed because of Antisamy policy(protection against Cross site scripting attcks).

To fix this for 'sms' you need to do exact chages like mentioned in below threads for 'tel'

xss - 'tel' attribute not working in href of anchor tag in rich text editor in classic UI in AEM 6.1 - Stack Overflow

Experiencing Adobe Experience Manager - Day CQ: AEM 6 SP2 - Handling Custom Protocol in Link Href in Rich Text Editor

Please check below as well:

Linkchecker removing href value

2 replies

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
April 5, 2019

The links are getting removed because of Antisamy policy(protection against Cross site scripting attcks).

To fix this for 'sms' you need to do exact chages like mentioned in below threads for 'tel'

xss - 'tel' attribute not working in href of anchor tag in rich text editor in classic UI in AEM 6.1 - Stack Overflow

Experiencing Adobe Experience Manager - Day CQ: AEM 6 SP2 - Handling Custom Protocol in Link Href in Rich Text Editor

Please check below as well:

Linkchecker removing href value

Arun Patidar
AlexS-1Author
Level 2
April 5, 2019

Thanks Arun