diff --git a/frontend/src/scenes/surveys/utils.ts b/frontend/src/scenes/surveys/utils.ts index 7ab39dc59c6e5..4493e1ac943e6 100644 --- a/frontend/src/scenes/surveys/utils.ts +++ b/frontend/src/scenes/surveys/utils.ts @@ -1,7 +1,7 @@ -import { sanitize } from 'dompurify' +import DOMPurify from 'dompurify' const sanitizeConfig = { ADD_ATTR: ['target'] } export function sanitizeHTML(html: string): string { - return sanitize(html, sanitizeConfig) + return DOMPurify.sanitize(html, sanitizeConfig) }