diff options
| author | Tim Graham <timograham@gmail.com> | 2014-03-21 08:32:01 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-03-21 08:50:43 -0400 |
| commit | 8b81dee60c1533e714a310fa5c3907356042a64c (patch) | |
| tree | 1c8d78cae84d3e502d284b8117d61f3737386177 /docs | |
| parent | 99339c77f648fcdc30f6d914cb7efd902327ade7 (diff) | |
Removed fix_ampersands template filter per deprecation timeline.
Also removed related utility functions:
* django.utils.html.fix_ampersands
* django.utils.html.clean_html
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/templates/builtins.txt | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt index 7900e5ed70..4f8102c003 100644 --- a/docs/ref/templates/builtins.txt +++ b/docs/ref/templates/builtins.txt @@ -1572,35 +1572,6 @@ For example:: If ``value`` is the list ``['a', 'b', 'c']``, the output will be ``'a'``. -.. templatefilter:: fix_ampersands - -fix_ampersands -^^^^^^^^^^^^^^ - -.. note:: - - This is rarely useful as ampersands are automatically escaped. See - :tfilter:`escape` for more information. - -.. deprecated:: 1.7 - This filter has been deprecated and will be removed in Django 1.8. - -Replaces ampersands with ``&`` entities. - -For example:: - - {{ value|fix_ampersands }} - -If ``value`` is ``Tom & Jerry``, the output will be ``Tom & Jerry``. - -However, ampersands used in named entities and numeric character references -will not be replaced. For example, if ``value`` is ``Café``, the output -will *not* be ``Caf&eacute;`` but remain ``Café``. This means that -in some edge cases, such as acronyms followed by semicolons, this filter will -not replace ampersands that need replacing. For example, if ``value`` is -``Contact the R&D;``, the output will remain unchanged because ``&D;`` -resembles a named entity. - .. templatefilter:: floatformat floatformat |
