|
Post by pzelchenko on Apr 8, 2022 0:56:12 GMT
set ¢erx 1 set £s 1 set ¤t 1 set &lify 2
When saving the code, this automatically gets converted to:
set ¢erx 1 set £s 1 set ¤t 1 set &lify 2
I think you can see that many, many HTML codes that happen to also be prefixes will interfere with variable naming and also confuse people when it happens unexpectedly. I'm afraid there are so many thousands of possibilities that this must be a rather frequent problem. If you handle the code translation deliberately (e.g., for strings), then perhaps the easy way to fix this is to do the conversion only if the code is within a pair of quotation marks.
|
|
|
Post by pzelchenko on Apr 8, 2022 1:03:27 GMT
In fact, I wonder if it wouldn't work better to just pass the codes to JS even when they're in literal strings. This way, the original code is not inadvertently changed in unexpected ways.
|
|