josephg/node-browserchannel — pull request #12 by nullobject (2012-04-11 05:42:41+00:00)
Title: Escape unparseable characters before sending JSON over the wire.

Hey,

We made a couple of specific solutions for unparseable characters (u2028 and u2029) in BC. It seems that some browsers have issues parsing JSON strings with these characters in them.

There's a bit more info here: http://stackoverflow.com/questions/2965293/javascript-parse-error-on-u2028-unicode-character

Ideally a more general solution to exclude a range of problematic characters would be better, but it's a start.

Cheers

Josh & James

P.S. In debugging this issue we broke your ShareJS demo site by simply pasting one of these characters in...sorry :)