diff options
-rw-r--r-- | index.rst | 6 | ||||
-rw-r--r-- | simplejson/encoder.py | 2 |
2 files changed, 4 insertions, 4 deletions
@@ -767,9 +767,9 @@ Encoders and decoders Subclass of :class:`JSONEncoder` that escapes &, <, and > for embedding in HTML. - It also escapes the line separator and paragraph separator - characters U+2028 and U+2029, irrespective of the ensure_ascii setting, - as these characters are not valid in Javascript strings (see + It also escapes the characters U+2028 (LINE SEPARATOR) and + U+2029 (PARAGRAPH SEPARATOR), irrespective of the *ensure_ascii* setting, + as these characters are not valid in JavaScript strings (see http://timelessrepo.com/json-isnt-a-javascript-subset). .. versionchanged:: 2.1.0 diff --git a/simplejson/encoder.py b/simplejson/encoder.py index 470ea84..9a78b26 100644 --- a/simplejson/encoder.py +++ b/simplejson/encoder.py @@ -382,7 +382,7 @@ class JSONEncoderForHTML(JSONEncoder): This class also escapes the line separator and paragraph separator characters U+2028 and U+2029, irrespective of the ensure_ascii setting, - as these characters are not valid in Javascript strings (see + as these characters are not valid in JavaScript strings (see http://timelessrepo.com/json-isnt-a-javascript-subset). """ |