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

adding cgi.escape -> html.escape #290

Closed
wants to merge 1 commit into from

Conversation

jvanasco
Copy link
Contributor

adds
from six.moves import html_escape

which is:
python2 - cgi.escape
python3 - html.escape

reference: Issue #159

@andersk
Copy link

andersk commented Oct 7, 2019

cgi.escape and html.escape have different defaults for the quote parameter, so this isn’t a straight move.

@taleinat
Copy link

taleinat commented Nov 5, 2019

This is indeed not a straight move, see the relevant Python wiki page for some more details.

The need for this is now greater with 3.8 released: cgi.escape was deprecated in 3.7 and has been removed in 3.8.

@jvanasco
Copy link
Contributor Author

jvanasco commented Nov 5, 2019

since this PR is not correct due to defaults, I will close it.

@jvanasco jvanasco closed this Nov 5, 2019
@jvanasco jvanasco mentioned this pull request Nov 5, 2019
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.

3 participants