From 039113b741f03cc01d9d5524c89cd9ab6d5ae24f Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Mon, 23 Dec 2019 17:56:01 +0530 Subject: [PATCH] fix: Whitelist schema.org attributes so that they can be used in HTML Editor in web pages --- frappe/utils/html_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frappe/utils/html_utils.py b/frappe/utils/html_utils.py index 5f3a6b4338..67a01296c1 100644 --- a/frappe/utils/html_utils.py +++ b/frappe/utils/html_utils.py @@ -163,7 +163,8 @@ acceptable_attributes = [ 'width', 'wrap', 'xml:lang', 'data-row', 'data-list', 'data-language', 'data-value', 'role', 'frameborder', 'allowfullscreen', 'spellcheck', 'data-mode', 'data-gramm', 'data-placeholder', 'data-comment', - 'data-id', 'data-denotation-char' + 'data-id', 'data-denotation-char', 'itemprop', 'itemscope', + 'itemtype', 'itemid', 'itemref', 'datetime' ] mathml_attributes = [