-
Notifications
You must be signed in to change notification settings - Fork 23
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
how to keep img tag #34
Comments
matthiask
added a commit
that referenced
this issue
Oct 31, 2023
@matthiask No, that should not work, because you have completely overwride exists setting |
@ohblue # Make a copy
html_settings = dict(html_sanitizer.sanitizer.DEFAULT_SETTINGS)
# Add your changes
html_settings['tags'].add('img')
html_settings['empty'].add('img')
html_settings['attributes'].update({'img': ('src', 'alt', 'title')})
sanitizer = Sanitizer(settings=html_settings) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have allowed the tag by seeting
but the tag is still being removed.
The text was updated successfully, but these errors were encountered: