]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
Add note on HTML usage of tojson filter
authorArmin Ronacher <armin.ronacher@active-4.com>
Fri, 6 Jan 2017 20:35:46 +0000 (21:35 +0100)
committerArmin Ronacher <armin.ronacher@active-4.com>
Fri, 6 Jan 2017 20:35:46 +0000 (21:35 +0100)
jinja2/filters.py

index 05c2fc4596c105fb3cd1327c0db6b690aa8d26ee..c71d3b1dfa0a7b870394ee40d51ad3f6eb90bf35 100644 (file)
@@ -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