From cfc2007f65e5220fb22157b4c16b70cbe0fc89a0 Mon Sep 17 00:00:00 2001 From: Kerolles Fathy Date: Mon, 2 Mar 2026 11:00:43 +0200 Subject: [PATCH] fix: allow dangerous HTML in link exists exception (#37677) * fix: allow dangerous HTML in link exists exception * fix: Allow `a` tags * Revert "fix: allow dangerous HTML in link exists exception" This reverts commit 9a37f5092ed6c27ff6a0c427df6494561e971ac3. --------- Co-authored-by: Ankush Menat --- frappe/utils/html_utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/frappe/utils/html_utils.py b/frappe/utils/html_utils.py index 7af5ab9907..4e8a828e1e 100644 --- a/frappe/utils/html_utils.py +++ b/frappe/utils/html_utils.py @@ -44,6 +44,7 @@ def clean_html(html): "tbody", "td", "tr", + "a", }, clean_content_tags=REMOVE_CONTENT_TAGS, strip_comments=True,