RTE- link issue: Special character & is getting converted to & | Community
Skip to main content
May 28, 2018
Solved

RTE- link issue: Special character & is getting converted to &

  • May 28, 2018
  • 2 replies
  • 1088 views

Hi,

We have a requirement to have a custom link plugin where link will contain & char but RTE is converting it to & while storing the data into jcr.

Is there any way to prevent it from being converted and have it as & only?

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 ashish_kumarm48

You can write a JAVA code to read that value and save it in a variable, then you can replace &amp to &  and then you can use that variable further using Sightly.

2 replies

ashish_kumarm48
ashish_kumarm48Accepted solution
Level 2
May 28, 2018

You can write a JAVA code to read that value and save it in a variable, then you can replace &amp to &  and then you can use that variable further using Sightly.

arunpatidar
Community Advisor
Community Advisor
May 28, 2018

Hi,

What is the issue?

It saves value in JCR as <a title="test" href="https://www.google.co.in/?q=1&amp;ap=2" target="Target">provide</a>  but in the page it is rendering correct like below https://www.google.co.in/?q=1&ap=2

https://www.google.co.in/?q=1&ap=2

Arun Patidar