Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Escaped characters un-escaping themselves in API editor on refresh

1482082920
Quinn
Pro
Sheet Author
I have this line in an API script, for escaping quotation marks to be used in a chat window button: But if I save, then refresh the page, the line has automatically transformed itself into this: Something's happening with the way the editor saves the javascript files so that escaped character sequences are turned back into the characters they're escaping. Is there a workaround for this, at least?
1482084228
Jakob
Sheet Author
API Scripter
Workaround: write them as a concatenation '&#34' + ';'
1482440439
Quinn
Pro
Sheet Author
For the record, that particular solution didn't work - '&#34' apparently also  reads as a quotation mark. however, '&#' + '34;' did. Either way, this is an awkward workaround, and much better would be if the editor honored the text I actually entered into it.