Imply the |safe on tojson in templates and change escaping logic
This commit is contained in:
parent
56d3b74488
commit
ef72b78042
7 changed files with 46 additions and 31 deletions
2
CHANGES
2
CHANGES
|
|
@ -17,6 +17,8 @@ Release date to be decided.
|
|||
``template_filter`` method family.
|
||||
- Set the content-length header for x-sendfile.
|
||||
- ``tojson`` filter now does not escape script blocks in HTML5 parsers.
|
||||
- ``tojson`` used in templates is now safe by default due. This was
|
||||
allowed due to the different escaping behavior.
|
||||
- Flask will now raise an error if you attempt to register a new function
|
||||
on an already used endpoint.
|
||||
- Added wrapper module around simplejson and added default serialization
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue