From 487fd3e3219244c5c8c9febbce43283a592670b0 Mon Sep 17 00:00:00 2001 From: Shreya Date: Wed, 3 Oct 2018 10:52:24 +0530 Subject: [PATCH] Allow img src having data protocol --- frappe/utils/html_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/utils/html_utils.py b/frappe/utils/html_utils.py index edd2afe8d9..f788004be4 100644 --- a/frappe/utils/html_utils.py +++ b/frappe/utils/html_utils.py @@ -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):