Expand my Community achievements bar.

SOLVED

I am trying to add <a href="tel:+1234567890">1234567890</a> in RTE

Avatar

Level 7

RTE is not able to render the same HTML as added in RTE. 

In xssProtection config

To resolve this I have added

<regexp name="telListing" value="tel:\+[0-9]+"/>
<attribute name="href">
	<regexp-list>
           <regexp name="telListing"/>
	</regexp-list>
</attribute>

 

it is accepting <a href="tel:1234567890">1234567890</a>

but not <a href="tel:+1234567890"> 1234567890</a>

adding plus is an issue

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
2 Replies

Avatar

Correct answer by
Community Advisor

Avatar

Community Advisor

Hi @Ronnie09 ,

 

I am able to replicate this issue in AEM 6.5.15, link is getting removed when trying to create the link in rte with tel:+1234567890 and works fine as you mentioned without the country code.

 

This article should help you with your issue:

http://www.sgaemsolutions.com/2019/12/hreftel-issue-for-international-numbers.html

 

Thanks,

Chitra