Skip to content

Commit

Permalink
[2.2.x] Fixed #14808 -- Doc'd that trans and blocktrans tags don't es…
Browse files Browse the repository at this point in the history
…cape translations.

Backport of 7d49ad7 from master
  • Loading branch information
rixx authored and felixxm committed Apr 16, 2019
1 parent c0dc49a commit b51842a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/topics/i18n/translation.txt
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,13 @@ As with all template tags, this tag needs to be loaded in all templates which
use translations, even those templates that extend from other templates which
have already loaded the ``i18n`` tag.

.. warning::

Translated strings will not be escaped when rendered in a template.
This allows you to include HTML in translations, for example for emphasis,
but potentially dangerous characters (e.g. ``"``) will also be rendered
unchanged.

.. templatetag:: trans

``trans`` template tag
Expand Down

0 comments on commit b51842a

Please sign in to comment.