mirror of
https://github.com/django/django.git
synced 2025-10-09 18:12:39 +00:00
Fixed #33631 -- Marked {% blocktranslate asvar %} result as HTML safe.
This commit is contained in:
parent
7faf25d682
commit
d4c5d2b52c
4 changed files with 26 additions and 2 deletions
|
@ -270,6 +270,9 @@ Miscellaneous
|
|||
* The undocumented ``django.http.multipartparser.parse_header()`` function is
|
||||
removed. Use ``django.utils.http.parse_header_parameters()`` instead.
|
||||
|
||||
* :ttag:`{% blocktranslate asvar … %}<blocktranslate>` result is now marked as
|
||||
safe for (HTML) output purposes.
|
||||
|
||||
.. _deprecated-features-4.2:
|
||||
|
||||
Features deprecated in 4.2
|
||||
|
|
|
@ -707,6 +707,11 @@ In practice you'll use this to get a string you can use in multiple places in a
|
|||
template or so you can use the output as an argument for other template tags or
|
||||
filters.
|
||||
|
||||
.. versionchanged:: 4.2
|
||||
|
||||
In older versions, ``asvar`` instances weren't marked as safe for (HTML)
|
||||
output purposes.
|
||||
|
||||
``{% blocktranslate %}`` also supports :ref:`contextual
|
||||
markers<contextual-markers>` using the ``context`` keyword:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue