Merge pull request #6187 from shreyashah115/allow-images

Allow img src having data protocol
This commit is contained in:
Shreya Shah 2018-10-03 16:13:32 +05:30 committed by GitHub
commit f4c9d5d2b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,7 +33,7 @@ def clean_email_html(html):
'font-size', 'font-weight', 'font-family', 'text-decoration',
'line-height', 'text-align', 'vertical-align'
],
protocols=['cid', 'http', 'https', 'mailto'],
protocols=['cid', 'http', 'https', 'mailto', 'data'],
strip=True, strip_comments=True)
def clean_script_and_style(html):