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 |
|---|---|---|
| .tx | Loading commit data... | |
| cms | Loading commit data... | |
| common | Loading commit data... | |
| conf/locale | Loading commit data... | |
| docs | Loading commit data... | |
| lms | Loading commit data... | |
| openedx | Loading commit data... | |
| pavelib | Loading commit data... | |
| requirements | Loading commit data... | |
| screenshots/baseline | Loading commit data... | |
| scripts | Loading commit data... | |
| static/monitoring | Loading commit data... | |
| test_root | Loading commit data... | |
| themes | Loading commit data... | |
| vendor_extra/tinymce | Loading commit data... | |
| .coveragerc | Loading commit data... | |
| .gitattributes | Loading commit data... | |
| .gitignore | Loading commit data... | |
| .jshintignore | Loading commit data... | |
| .jshintrc | Loading commit data... | |
| AUTHORS | Loading commit data... | |
| CHANGELOG.rst | Loading commit data... | |
| CONTRIBUTING.rst | Loading commit data... | |
| LICENSE | Loading commit data... | |
| README.rst | Loading commit data... | |
| circle.yml | Loading commit data... | |
| manage.py | Loading commit data... | |
| package.json | Loading commit data... | |
| pavement.py | Loading commit data... | |
| pylintrc | Loading commit data... | |
| pylintrc_tweaks | Loading commit data... | |
| setup.cfg | Loading commit data... | |
| setup.py | Loading commit data... |