mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 19:36:12 +01:00
fix(share): HTML tags displayed escaped in headings
This commit is contained in:
@@ -497,7 +497,7 @@ export function formatSize(size: number | null | undefined) {
|
||||
}
|
||||
}
|
||||
|
||||
export function slugify(text: string) {
|
||||
function slugify(text: string) {
|
||||
return text
|
||||
.normalize("NFKD") // handles accents like é → e
|
||||
.toLowerCase()
|
||||
@@ -540,6 +540,7 @@ export default {
|
||||
safeExtractMessageAndStackFromError,
|
||||
sanitizeSqlIdentifier,
|
||||
stripTags,
|
||||
slugify,
|
||||
timeLimit,
|
||||
toBase64,
|
||||
toMap,
|
||||
|
||||
Reference in New Issue
Block a user