We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
bleach_linkify
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.
html|bleach
html|bleach_linkify
I guess this is intended behavior given the test linked below, but this seems like strange behavior to me
django-bleach/django_bleach/tests/test_templatetags.py
Line 58 in aefb860
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.
bleach
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).
html|bleach_linkify|safe
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?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Is your feature request related to a problem? Please describe.
Right now,
html|bleach
is marked as safe, buthtml|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
django-bleach/django_bleach/tests/test_templatetags.py
Line 58 in aefb860
Describe the solution you'd like
Just like the
bleach
template tag, I'd likebleach_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 usehtml|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?
The text was updated successfully, but these errors were encountered: