Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate 'escape html' #1618

Merged

Conversation

matthewhegarty
Copy link
Contributor

Problem

With reference to #1602, it is more secure to escape exported HTML by default (rather than by setting an option). A future release of tablib will switch to ElementTree instead of MarkupPy which will do escaping by default.

This release deprecates the use of IMPORT_EXPORT_ESCAPE_HTML_ON_EXPORT.

Also, previously deprecated IMPORT_EXPORT_ESCAPE_OUTPUT_ON_EXPORT is removed.

This PR temporarily pins tablib to 3.5.0 so that the default HTML escaping behaviour of ElementTree can be introduced in a future release.

@coveralls
Copy link

coveralls commented Sep 12, 2023

Coverage Status

coverage: 100.0%. remained the same when pulling 3b726ab on matthewhegarty:deprecate-escape-html into c2b2f1e on django-import-export:main.

@matthewhegarty matthewhegarty merged commit 432c535 into django-import-export:main Sep 13, 2023
5 checks passed
@matthewhegarty matthewhegarty deleted the deprecate-escape-html branch September 13, 2023 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI build broken due to upstream changes in tablib
2 participants