AEM Sightly - Special characters not displaying properly in view source for RTE
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?