##// END OF EJS Templates
json: add more paranoid escaping
Matt Mackall -
r19882:55c76392 stable
parent child Browse files
Show More
@@ -213,6 +213,7 b' def _uescape(c):'
213 _escapes = [
213 _escapes = [
214 ('\\', '\\\\'), ('"', '\\"'), ('\t', '\\t'), ('\n', '\\n'),
214 ('\\', '\\\\'), ('"', '\\"'), ('\t', '\\t'), ('\n', '\\n'),
215 ('\r', '\\r'), ('\f', '\\f'), ('\b', '\\b'),
215 ('\r', '\\r'), ('\f', '\\f'), ('\b', '\\b'),
216 ('<', '\\u003c'), ('>', '\\u003e')
216 ]
217 ]
217
218
218 def jsonescape(s):
219 def jsonescape(s):
General Comments 0
You need to be logged in to leave comments. Login now