
I've noticed this happening since I started working on API scripts. I have yet to find a repeatable case, but it seems to have something to do with when the API page is slow to save a new script. It's possible that it involves refreshing the page before the save process has finished.
Basically, strings like this:
That presentation of the issue is fairly innocuous, but when it's something like this:
Here's an actual case:

Anyway, don't know what can be done about that, but maybe this description is thorough enough to allow the Devs to figure out where this might be happening.
Basically, strings like this:
var s='Some string with <something> in angle brackets.';End up as:
var s='Some string with <something> in angle brackets.';That means that whenever it is sent to chat, the <something> disappears and you just get the output:
Some string with in angle brackets.
That presentation of the issue is fairly innocuous, but when it's something like this:
var s='Something that's worse...';You end up with 'Unexpected identifier' and the script won't load because it has this line now:
var s='Something that's worse...';
Here's an actual case:

Anyway, don't know what can be done about that, but maybe this description is thorough enough to allow the Devs to figure out where this might be happening.