fix: import from dompurify on utils
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
/* 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 { find, isArray, mergeWith, remove, uniq, uniqWith } from 'lodash'
|
||||||
import { AnyRecord } from '@standardnotes/common'
|
import { AnyRecord } from '@standardnotes/common'
|
||||||
|
|
||||||
@@ -605,7 +605,7 @@ export function convertTimestampToMilliseconds(timestamp: number): number {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function sanitizeHtmlString(html: string): string {
|
export function sanitizeHtmlString(html: string): string {
|
||||||
return DOMPurify.sanitize(html)
|
return sanitize(html)
|
||||||
}
|
}
|
||||||
|
|
||||||
let sharedDateFormatter: unknown
|
let sharedDateFormatter: unknown
|
||||||
|
|||||||
Reference in New Issue
Block a user