summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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