Changes between Initial Version and Version 1 of Ticket #10449, comment 2
- Timestamp:
- Jun 3, 2016, 2:45:14 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #10449, comment 2
initial v1 1 1 There is no bug here. 2 2 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.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. 4 4 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".)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".) 6 6 7 Using this in your ` `.po`` file, things will Just Work:7 Using this in your `.po` file, things will Just Work: 8 8 9 9 {{{