RTE- link issue: Special character & is getting converted to & | Community
Skip to main content
New Participant
May 28, 2018 12:25 PM UTC
Solved

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

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.
ashish_kumarm48
ashish_kumarm48Accepted solution
Level 2
May 28, 2018 1:01 PM UTC

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

arunpatidar
New Participant
May 28, 2018 2:35 PM UTC

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

Translate
Arun Patidar
ashish_kumarm48
ashish_kumarm48Accepted solution
Level 2
May 28, 2018 1:01 PM UTC

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.

Translate