Skip to content

Commit

Permalink
changed how we import dompurify in survey/utils, was causing no match…
Browse files Browse the repository at this point in the history
…ing export
  • Loading branch information
adamleithp committed Dec 11, 2024
1 parent 65077a3 commit dbceb29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/scenes/surveys/utils.ts
Original file line number Diff line number Diff line change
@@ -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)
}

0 comments on commit dbceb29

Please sign in to comment.