messageformat.js does not handle double apostrophes correctly.
var mf = new MessageFormat('en');
console.log(mf.compile("I see '{many}'")());
console.log(mf.compile("I said '{''Wow!''}'")());
console.log(mf.compile("I don't know")());
console.log(mf.compile("I don''t know")());
This should output (assuming DOUBLE_OPTIONAL):
I see {many}
I said {'Wow!'}
I don't know
I don't know
The first two don't work at all, and the fourth one outputs two single quotes instead of one.
Copied from https://github.com/messageformat/messageformat.js/issues/175
messageformat.js does not handle double apostrophes correctly.
This should output (assuming DOUBLE_OPTIONAL):
I see {many}
I said {'Wow!'}
I don't know
I don't know
The first two don't work at all, and the fourth one outputs two single quotes instead of one.
See http://icu-project.org/apiref/icu4j/com/ibm/icu/text/MessagePattern.ApostropheMode.html and http://userguide.icu-project.org/formatparse/messages#TOC-Quoting-Escaping