Expand my Community achievements bar.

Adobe Summit 2025: AEM Session Recordings Are Live! Missed a session or want to revisit your favorites? Watch the latest recordings now.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

Sms links cleaned out of html

Avatar

Level 2

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">

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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...

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

Please check below as well:

Linkchecker removing href value

Arun Patidar

AEM LinksLinkedIn

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

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...

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

Please check below as well:

Linkchecker removing href value

Arun Patidar

AEM LinksLinkedIn

Avatar

Level 2

Thanks Arun