deprecate JSON encoding options

make consistent with built-in json module
This commit is contained in:
David Lord 2020-04-07 12:32:27 -07:00
parent c43edfc7c0
commit 8b5f760b72
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
2 changed files with 54 additions and 49 deletions

View file

@ -232,7 +232,6 @@ class TestJSON:
render = flask.render_template_string
rv = flask.json.htmlsafe_dumps("</script>")
assert rv == '"\\u003c/script\\u003e"'
assert type(rv) is str
rv = render('{{ "</script>"|tojson }}')
assert rv == '"\\u003c/script\\u003e"'
rv = render('{{ "<\0/script>"|tojson }}')