mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #33631 -- Marked {% blocktranslate asvar %} result as HTML safe.
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user