From 8109a75141afc6ae2a3a1d39f7111b0daf9fb99a Mon Sep 17 00:00:00 2001 From: Mozafar Haider Date: Wed, 24 Apr 2024 16:34:46 +0100 Subject: [PATCH] fix(DHIS2-17002): accept 'u' html tag instead of 'underline' --- src/data-workspace/section-form/section-description.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data-workspace/section-form/section-description.js b/src/data-workspace/section-form/section-description.js index a37971638..36ed68a59 100644 --- a/src/data-workspace/section-form/section-description.js +++ b/src/data-workspace/section-form/section-description.js @@ -8,7 +8,7 @@ export const SectionDescription = ({ children }) => { return null } const html = DOMPurify.sanitize(children, { - ALLOWED_TAGS: ['a', 'b', 'strong', 'underline'], + ALLOWED_TAGS: ['a', 'b', 'strong', 'u', 'em'], }) return (