mirror of
https://github.com/django/django.git
synced 2025-07-18 08:39:15 +00:00
[3.0.x] Fixed #31171 -- Fixed wording in auto-escaping section of custom template tags docs.
Backport of 73563183c2ea92e9ef1d3a1f790a503acc14ade2 from master
This commit is contained in:
parent
5b6778b8b9
commit
f0e1a69c99
@ -772,7 +772,7 @@ auto-escaping filters (with the exception of
|
|||||||
are still a couple of things you should keep in mind when writing a template
|
are still a couple of things you should keep in mind when writing a template
|
||||||
tag.
|
tag.
|
||||||
|
|
||||||
If the ``render()`` function of your template stores the result in a context
|
If the ``render()`` method of your template tag stores the result in a context
|
||||||
variable (rather than returning the result in a string), it should take care
|
variable (rather than returning the result in a string), it should take care
|
||||||
to call ``mark_safe()`` if appropriate. When the variable is ultimately
|
to call ``mark_safe()`` if appropriate. When the variable is ultimately
|
||||||
rendered, it will be affected by the auto-escape setting in effect at the
|
rendered, it will be affected by the auto-escape setting in effect at the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user