From bfb1a58c6ba5dd30069c1c76bf373c90c5c5c895 Mon Sep 17 00:00:00 2001 From: Chad Burt Date: Thu, 4 Jan 2024 15:02:44 -0800 Subject: [PATCH] Don't remove class attribute from tooltips --- .../api/src/plugins/sanitizeInteractivityTemplatesPlugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/api/src/plugins/sanitizeInteractivityTemplatesPlugin.ts b/packages/api/src/plugins/sanitizeInteractivityTemplatesPlugin.ts index 0f93e74b7..704cd7b15 100644 --- a/packages/api/src/plugins/sanitizeInteractivityTemplatesPlugin.ts +++ b/packages/api/src/plugins/sanitizeInteractivityTemplatesPlugin.ts @@ -48,7 +48,7 @@ function sanitizeInput(input: string) { input = sanitizeHtml(input, { allowedAttributes: { ...sanitizeHtml.defaults.allowedAttributes, - "*": ["style"], + "*": ["style", "class"], }, }); return input;