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

Make bleach_linkify safe #77

Open
spenserblack opened this issue Oct 11, 2022 · 0 comments
Open

Make bleach_linkify safe #77

spenserblack opened this issue Oct 11, 2022 · 0 comments

Comments

@spenserblack
Copy link
Contributor

Is your feature request related to a problem? Please describe.

Right now, html|bleach is marked as safe, but html|bleach_linkify is an unsafe, raw string.

I guess this is intended behavior given the test linked below, but this seems like strange behavior to me

'{{ link_this|bleach_linkify|safe }}'

Describe the solution you'd like

Just like the bleach template tag, I'd like bleach_linkify to return a safestring, not a raw string.

Describe alternatives you've considered

As the linked test shows, html|bleach_linkify|safe seems to be OK (in my usage I actually had to use html|bleach|bleach_linkify|safe).

Additional context
AFAIK bleach does support a way to both sanitize HTML and linkify in one pass. Maybe that's a possibility?

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

1 participant