summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTobias Kunze <r@rixx.de>2019-04-16 10:45:45 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2019-04-16 10:47:32 +0200
commitb51842af2642df16505db57bdec8973e464f6822 (patch)
tree211879d74e2f75780f500de8f87cee9c7415401d /docs
parentc0dc49a7722484484f588b91157a670889046859 (diff)
[2.2.x] Fixed #14808 -- Doc'd that trans and blocktrans tags don't escape translations.
Backport of 7d49ad76562e8c0597a0eb66046ab423b12888d8 from master
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/i18n/translation.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/topics/i18n/translation.txt b/docs/topics/i18n/translation.txt
index 04b1060909..421785b085 100644
--- a/docs/topics/i18n/translation.txt
+++ b/docs/topics/i18n/translation.txt
@@ -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