-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Escape \u2028 and \u2029 in JSON output. #2195
Conversation
LGTM but I'm thinking we should just fix this under the JSONPRenderer instead. |
Perhaps. I'm expecting we'll also have folks using |
Makes sense. Having it under the |
Don't feel like there's any great solutions here - not wild about potential for it to be an unneeded minor performance hit for the folks who don't need it, but there's no real way round it, so. (And presumably not actually an issue, but still meh) |
I still haven't seen any further reports about it though, so I think its totally valid we consider actually adding this vs perhaps leaving as is for now. Also, now that I think of it, might be interesting to allow users to swap |
Sorry, wasn't clear what you synopsis was on this? |
…029-json Escape \u2028 and \u2029 in JSON output.
@tomchristie sorry for not being more clear. What I mean was that if we weren't happy with adding this and hasn't been a recurring brought-up issue we could just leave it out for now specially if you're worried about any potential hits for the 99.99% who haven't had this problem. |
Just fixing the damn thing. JSON spec authors oughta get their shit together and put a single para ammendment in recommending that those 2 chars be escaped and. :-| |
Closes #2169.