Esta conversación ha sido bloqueada debido a la inactividad. Cree una nueva publicación.
Nivel 1
Nivel 2
Iniciar sesión en la comunidad
Iniciar sesión para ver todas las insignias
Esta conversación ha sido bloqueada debido a la inactividad. Cree una nueva publicación.
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?
Vistas
Respuestas
Total de me gusta
Vistas
Respuestas
Total de me gusta
Hi Arun,
Thanks for the reply.
I am using HTL in the same way as you have used in the example and getting the exact same result in inspect element console as shown in snapshot.
However, the issue is when I right click on the page and choose the option "View Page Source", there the output is different.
And as I mentioned earlier, I wasn't facing this issue with AEM6.3, only after upgrading to 6.4 the problem appeared.
Vistas
Respuestas
Total de me gusta
This is what i see on page
and this on view source
I am not sure whats the confusion, can you elaborate
Vistas
Respuestas
Total de me gusta
The code seems to work fine now. Not sure why it wasn't working earlier. Thanks edubey and Arun.
Vistas
Respuestas
Total de me gusta
Vistas
Respuestas
Total de me gusta
Vistas
me gusta
Respuestas
Vistas
me gusta
Respuestas
Vistas
me gusta
Respuestas
Vistas
me gusta
Respuestas