summaryrefslogtreecommitdiff
path: root/index.rst
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2018-03-29 07:15:08 +0100
committerRichard van der Hoff <richard@matrix.org>2018-03-29 07:15:08 +0100
commite45a6ae5df74d0881d9d9e5f6cd28e6c4d336637 (patch)
tree5247d6ddcdd33c9636175c0a2f552f462e92a891 /index.rst
parent8ea5f90e6eadcf6a1ce4bb3908e954f7253aa3ae (diff)
downloadsimplejson-e45a6ae5df74d0881d9d9e5f6cd28e6c4d336637.tar.gz
Update documentation for JSONEncoderForHTML
Diffstat (limited to 'index.rst')
-rw-r--r--index.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/index.rst b/index.rst
index 3869a50..9dbecf1 100644
--- a/index.rst
+++ b/index.rst
@@ -767,6 +767,11 @@ 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
+ http://timelessrepo.com/json-isnt-a-javascript-subset).
+
.. versionchanged:: 2.1.0
New in 2.1.0