Webapp special characters escaped in Javascript




Every time we make some changes in a webapp and publish it, the special characters like '<' '>' or '&' are escaped inside the javascript tags.

This is no issue if these are escaped in plain html, but if they are escaped in a javascript condition inside <% %> tags, this condition will return an error and the webapp will crash.

Example :

<% if(recipient.@age > 18){ %>

is changed into

<% if(recipient.@age &gt; 18){ %>

we each time have to go back to the webapp page, change all those escaped characters back to their initial state and save the webapp again.

Can we avoid this by changing something to the encoding of those webpages? Is this a known issue?

Kind regards,


Accepted Solutions (0)

Answers (0)