Removed a redundant paragraph from the templates builtins doc.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17272 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
4c445fdfaa
commit
4403ce10b7
|
@ -147,13 +147,6 @@ This is because template tags do not escape their content. Any HTML or
|
||||||
Javascript code contained in the printed variable will be rendered
|
Javascript code contained in the printed variable will be rendered
|
||||||
as-is, which could potentially lead to security issues.
|
as-is, which could potentially lead to security issues.
|
||||||
|
|
||||||
If you need to escape the variables in the cycle, you must do so
|
|
||||||
explicitly::
|
|
||||||
|
|
||||||
{% filter force_escape %}
|
|
||||||
{% cycle var1 var2 var3 %}
|
|
||||||
{% endfilter %}
|
|
||||||
|
|
||||||
For backwards compatibility, the ``{% cycle %}`` tag supports the much inferior
|
For backwards compatibility, the ``{% cycle %}`` tag supports the much inferior
|
||||||
old syntax from previous Django versions. You shouldn't use this in any new
|
old syntax from previous Django versions. You shouldn't use this in any new
|
||||||
projects, but for the sake of the people who are still using it, here's what it
|
projects, but for the sake of the people who are still using it, here's what it
|
||||||
|
|
Loading…
Reference in New Issue