| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| management | ||
| README | ||
| __init__.py | ||
| makoloader.py | ||
| middleware.py | ||
| paths.py | ||
| shortcuts.py | ||
| startup.py | ||
| template.py | ||
| templatetag_helpers.py | ||
| tests.py |
The old code set the output-encoding to None, which means, I want Unicode strings as output. This made Mako pass markupsafe objects to "unicode()", which applied all the escaping. Then the result would be given to Django, would would html-escape it again, resulting in over-escaping. By setting the output-encoding to utf8, we use filters.encode.utf8 instead, which is aware of Markupsafe, which avoids the over-escaping.
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| management | Loading commit data... | |
| README | Loading commit data... | |
| __init__.py | Loading commit data... | |
| makoloader.py | Loading commit data... | |
| middleware.py | Loading commit data... | |
| paths.py | Loading commit data... | |
| shortcuts.py | Loading commit data... | |
| startup.py | Loading commit data... | |
| template.py | Loading commit data... | |
| templatetag_helpers.py | Loading commit data... | |
| tests.py | Loading commit data... |