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
allowed_protocols
Currently it will not render phone links:
[+420 123 456 789](tel:+420123456789)
renders to
<a>+420 123 456 789</a>
instead of
<a href="tel:+420123456789">+420 123 456 789</a>
It is because default bleach configuration does not supports tel protocols and tel protocols have to be added manually, see mozilla/bleach#102.
bleach
tel
So it will be nice to have configuration allowed_protocols.
The text was updated successfully, but these errors were encountered:
Until #152 is fixed and committed, one can use following workaround (monkey patching).
Add into settings.py (settings/base.py):
settings.py
settings/base.py
import bleach.sanitizer bleach.sanitizer.ALLOWED_PROTOCOLS += ['tel']
Sorry, something went wrong.
No branches or pull requests
Currently it will not render phone links:
renders to
instead of
It is because default
bleach
configuration does not supportstel
protocols andtel
protocols have to be added manually, see mozilla/bleach#102.So it will be nice to have configuration
allowed_protocols
.The text was updated successfully, but these errors were encountered: