Skip to content

Commit

Permalink
Add note on HTML usage of tojson filter
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed Jan 6, 2017
1 parent e71a130 commit e273b3a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jinja2/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -938,6 +938,8 @@ def do_tojson(eval_ctx, value, indent=None):
The indent parameter can be used to enable pretty printing. Set it to
the number of spaces that the structures should be indented with.
Note that this filter is for use in HTML contexts only.
.. versionadded:: 2.9
"""
policies = eval_ctx.environment.policies
Expand Down

0 comments on commit e273b3a

Please sign in to comment.