Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
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
4 Replies

Avatar

Correct answer by
Community Advisor

Hi @SantoshSai 

In aem as cloud service I have tried by overlaying and added the regex expression as given below but that doesn't work  , tel:1234567890 this is working but when we use + character  tel:+1234567890 this is not working and that to in only dialog , when I am trying to unlink I am not able to unlink it and  in repository its saving as tel:+1234567890   on page its rendering as expected and the functionality is working as well but when I am trying to open and edit it I am not able to unlink .

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

 

Avatar

Level 2

Hi @Ronnie09  

 

Did this fix resolved the issue  when you are adding + ...?

 

tel:1234567890 this is working but tel:+1234567890 this is not working