diff options
author | Richard van der Hoff <richard@matrix.org> | 2018-03-29 07:15:08 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2018-03-29 07:15:08 +0100 |
commit | e45a6ae5df74d0881d9d9e5f6cd28e6c4d336637 (patch) | |
tree | 5247d6ddcdd33c9636175c0a2f552f462e92a891 | |
parent | 8ea5f90e6eadcf6a1ce4bb3908e954f7253aa3ae (diff) | |
download | simplejson-e45a6ae5df74d0881d9d9e5f6cd28e6c4d336637.tar.gz |
Update documentation for JSONEncoderForHTML
-rw-r--r-- | index.rst | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |