Changes between Initial Version and Version 1 of Ticket #10449, comment 2


Ignore:
Timestamp:
Jun 3, 2016, 2:45:14 PM (8 years ago)
Author:
Philip James

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10449, comment 2

    initial v1  
    11There is no bug here.
    22
    3 Django converts certain characters to the corresponding HTML entities (a.k.a. "automatic HTML escaping") and offers a couple of ways to disable this behaviour, including the ``safe`` filter.  You seem to think that Django will do the conversion in the other direction, but that is not the case.
     3Django converts certain characters to the corresponding HTML entities (a.k.a. "automatic HTML escaping") and offers a couple of ways to disable this behaviour, including the `safe` filter.  You seem to think that Django will do the conversion in the other direction, but that is not the case.
    44
    5 Note that Django marks translation strings as being "safe" (you'd see "Sessión" instead of "Sessión" otherwise), so applying the ``safe`` filter doesn't change things.  (The ``safe`` filter prevent auto-escaping, it doesn't "unescape".)
     5Note that Django marks translation strings as being "safe" (you'd see "Sessión" instead of "Sessión" otherwise), so applying the `safe` filter doesn't change things.  (The `safe` filter prevent auto-escaping, it doesn't "unescape".)
    66
    7 Using this in your ``.po`` file, things will Just Work:
     7Using this in your `.po` file, things will Just Work:
    88
    99{{{
Back to Top