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

Alias for clean_text function: escape? #28

Open
ashrub-holvi opened this issue Nov 28, 2023 · 1 comment
Open

Alias for clean_text function: escape? #28

ashrub-holvi opened this issue Nov 28, 2023 · 1 comment

Comments

@ashrub-holvi
Copy link

Sorry if I misunderstand something, but for me looks like clean_text function doesn't clean html or text, but do escape for html.
I understand that it's just mirroring API of ammonia, but perhaps good to have some, better named alias.

@ashrub-holvi ashrub-holvi changed the title Alias for clean_text function, escape? Alias for clean_text function: escape? Nov 30, 2023
@adamchainz
Copy link
Contributor

Also, Python already has html.escape(). It would be good to note how nh3/ammonia differs.

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

No branches or pull requests

2 participants