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

Add cgi.escape #159

Open
benjaminp opened this issue Aug 17, 2016 · 2 comments · May be fixed by #307
Open

Add cgi.escape #159

benjaminp opened this issue Aug 17, 2016 · 2 comments · May be fixed by #307

Comments

@benjaminp
Copy link
Owner

Originally reported by: Anonymous


In python 2.7 cgi.escape is used to encode htmlentities but in python 3.2 onward it's html.escape

Python 2.7
https://docs.python.org/2/library/cgi.html

Python 3.2
https://docs.python.org/3/library/html.html


@benjaminp
Copy link
Owner Author

Original comment by Thomas Schultz (Bitbucket: daspecster, GitHub: daspecster):


Sorry, I wasn't signed in when I made the issue.

@jvanasco
Copy link
Contributor

jvanasco commented Nov 5, 2019

I attempted a PR but it was incorrect, so I've closed the ticket.. I don't have time to work on this, but some users commented on the correct behavior:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants