RTE - Stripping of Title and Href Attribute in Source Edit | Community
Skip to main content
Level 2
September 9, 2021
Solved

RTE - Stripping of Title and Href Attribute in Source Edit

  • September 9, 2021
  • 1 reply
  • 834 views

When we add title attribute with '+' in content and Href attribute with 'tel:' via Source Edit in RTE it strips away in the markup. Is there a recommended approach to handle this ? I have seen lot of articles recommending to change the xssprotection/config.xml but is this the only way to fix this since Adobe doesn't recommend meddling with it ? Please let me know. This is for AEM Saas. TIA

 

-Lokesh

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 Asutosh_Jena_

Hi @lokesh426 

 

Please ensure to add "tel:" as a special link prefix in com.day.cq.rewriter.linkchecker.impl.LinkCheckerImpl OSGi configuration. This will ensure the tel link is not removed from the page.

 

And yes, you need to update the XSS protection to allow any special chars for any attributes you want.

 

Thanks!

1 reply

Asutosh_Jena_
Community Advisor
Asutosh_Jena_Community AdvisorAccepted solution
Community Advisor
September 9, 2021

Hi @lokesh426 

 

Please ensure to add "tel:" as a special link prefix in com.day.cq.rewriter.linkchecker.impl.LinkCheckerImpl OSGi configuration. This will ensure the tel link is not removed from the page.

 

And yes, you need to update the XSS protection to allow any special chars for any attributes you want.

 

Thanks!

lokesh426Author
Level 2
September 9, 2021

Hi Ashutosh,

 

Thanks for the reply, updating link checker with tel fixed it .

 

-Lokesh