Sms links cleaned out of html

Avatar

Avatar

alexanders10610

Avatar

alexanders10610

alexanders10610

05-04-2019

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Reply

838

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Reply

838
Arun_Patidar
MVP

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

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

Answers (1)

Answers (1)

Avatar

Avatar

alexanders10610

Avatar

alexanders10610

alexanders10610

05-04-2019

Thanks Arun