Hi Team,
I have a requirement where user inputs <%= formatDate(new Date(), "%2D.%2M.%4Y") %> in RTE.
If I check the view page source, the data is rendered as <%= formatDate(new Date(), "%2D.%2M.%4Y") %>
Desired result is <%= formatDate(new Date(), "%2D.%2M.%4Y") %>
I tried adding context = 'unsafe' but it is not working for RTE although the context works like a charm for textfield or pathfield.
Is there a way to get the expected result in RTE as well?
Solved! Go to Solution.
Hi,
I think when user input text in RTE , the character encoding is applied thats why your function is traded as text.
What you can do, you can read RTE text value using java and decode and return in HTL.
Hi,
I think when user input text in RTE , the character encoding is applied thats why your function is traded as text.
What you can do, you can read RTE text value using java and decode and return in HTL.
Arun's response is correct.
Views
Replies
Total Likes
Thank you Arun. The solution works
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies