SlexAxton/messageformat.js — pull request #9 by Stuk (2012-06-04 17:34:49+00:00)
Title: Escape double-quotes in message strings

Double-quotes would cause problems when compiling the message to a function, as the code generation wraps strings in double-quotes.

I also removed `(\n)|` from the badChars regex, as I could not see why it was needed. Maybe I've missed something?