chore: display tag title as string in delete dialog (#2904)
This commit is contained in:
committed by
GitHub
parent
974fcef288
commit
e2250600a8
@@ -1,6 +1,6 @@
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
import { sanitize } from 'dompurify'
|
||||
import { find, isArray, mergeWith, remove, uniq, uniqWith } from 'lodash'
|
||||
import { escape, find, isArray, mergeWith, remove, uniq, uniqWith } from 'lodash'
|
||||
import { AnyRecord } from '@standardnotes/common'
|
||||
|
||||
const collator = typeof Intl !== 'undefined' ? new Intl.Collator('en', { numeric: true }) : undefined
|
||||
@@ -612,6 +612,10 @@ export function sanitizeHtmlString(html: string): string {
|
||||
return sanitize(html)
|
||||
}
|
||||
|
||||
export function escapeHtmlString(html: string): string {
|
||||
return escape(html)
|
||||
}
|
||||
|
||||
let sharedDateFormatter: unknown
|
||||
export function dateToLocalizedString(date: Date): string {
|
||||
if (typeof Intl !== 'undefined' && Intl.DateTimeFormat && typeof navigator !== 'undefined') {
|
||||
|
||||
Reference in New Issue
Block a user