deprecate JSON encoding options
make consistent with built-in json module
This commit is contained in:
parent
c43edfc7c0
commit
8b5f760b72
2 changed files with 54 additions and 49 deletions
|
|
@ -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 }}')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue