Hi Team,
I have a requirement to render special characters like "doublequote" ("), "quote" ('), "less than" (<), "greater than" (>) in textfield/pathfield.
The problem now is these characters get HTML encoded in the view source page.
So, if an Input expression in textfield is
<%= formatDate(new Date(), "%2D.%2M.%4Y") %>
It is displayed as
<%= formatDate(new Date(), "%2D.%2M.%4Y") %>
Expected result: <%= formatDate(new Date(), "%2D.%2M.%4Y") %>
I have tried using context='unsafe' but it is not working (worked for AEM 6.3). I tried calling this value using java but the input expression is fetched correctly in the method, the encoding is done later.
Is there a way to get the expected result?