diff options
author | Richard van der Hoff <richard@matrix.org> | 2018-03-29 08:58:41 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2018-03-29 08:58:41 +0100 |
commit | f3ac28677376720c84f60cb74dd9f1ba8fd4f807 (patch) | |
tree | 7a4bd382cb162df0362dffbce57111d7e368cb78 | |
parent | e45a6ae5df74d0881d9d9e5f6cd28e6c4d336637 (diff) | |
download | simplejson-f3ac28677376720c84f60cb74dd9f1ba8fd4f807.tar.gz |
documentation updates
-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). """ |