Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

Webapp special characters escaped in Javascript

xavierv6303633
Level 3
Level 3

Hi,

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,

Xavier

0 Replies