Ticket #16071: 16071.fixampersands-doc.diff

File 16071.fixampersands-doc.diff, 829 bytes (added by Julien Phalip, 13 years ago)
  • docs/ref/templates/builtins.txt

    diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt
    index 3b650f1..557b5a3 100644
    a b For example::  
    15101510
    15111511If ``value`` is ``Tom & Jerry``, the output will be ``Tom & Jerry``.
    15121512
     1513However, ampersands used in named entities and numeric character references are
     1514not replaced. For example, if ``value`` is ``Café``, the output will
     1515*not* be ``Café`` but remain ``Café``. This means that in some edge
     1516cases, such as abbreviations followed by semicolons, this filter will not
     1517replace ampersands that need replacing. For example, if ``value`` is ``Contact
     1518the R&D;``, the output will remain unchanged because ``&D;`` resembles a named
     1519entity.
     1520
    15131521.. templatefilter:: floatformat
    15141522
    15151523floatformat
Back to Top