fix: import from dompurify on utils

This commit is contained in:
Karol Sójko
2022-07-06 13:06:22 +02:00
parent 6751f30db6
commit 57510921c2

View File

@@ -1,5 +1,5 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import * as DOMPurify from 'dompurify'
import { sanitize } from 'dompurify'
import { find, isArray, mergeWith, remove, uniq, uniqWith } from 'lodash'
import { AnyRecord } from '@standardnotes/common'
@@ -605,7 +605,7 @@ export function convertTimestampToMilliseconds(timestamp: number): number {
}
export function sanitizeHtmlString(html: string): string {
return DOMPurify.sanitize(html)
return sanitize(html)
}
let sharedDateFormatter: unknown