Custom JS is HTML encoded, invalidating code
-
If I use some custom JavaScript with && condition, it is encoded to && – which breaks the code.
Example:
function shouldOpen () { if (window.someVar && window.someOtherVar) { return true } return false }
it becomes:
function shouldOpen () { if (window.someVar & amp;& amp; window.someOtherVar) { return true } return false }
Which is not a valid function block to pass to the Function constructor.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Custom JS is HTML encoded, invalidating code’ is closed to new replies.