mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 19:36:12 +01:00
fix(import): check boxes not preserved on safe import
This commit is contained in:
@@ -52,7 +52,8 @@ function sanitize(dirtyHtml: string) {
|
|||||||
return sanitizeHtml(dirtyHtml, {
|
return sanitizeHtml(dirtyHtml, {
|
||||||
allowedTags,
|
allowedTags,
|
||||||
allowedAttributes: {
|
allowedAttributes: {
|
||||||
'*': [ 'class', 'style', 'title', 'src', 'href', 'hash', 'disabled', 'align', 'alt', 'center', 'data-*' ]
|
"*": [ 'class', 'style', 'title', 'src', 'href', 'hash', 'disabled', 'align', 'alt', 'center', 'data-*' ],
|
||||||
|
"input": [ "type" ]
|
||||||
},
|
},
|
||||||
allowedSchemes: [
|
allowedSchemes: [
|
||||||
'http', 'https', 'ftp', 'ftps', 'mailto', 'data', 'evernote', 'file', 'facetime', 'irc', 'gemini', 'git',
|
'http', 'https', 'ftp', 'ftps', 'mailto', 'data', 'evernote', 'file', 'facetime', 'irc', 'gemini', 'git',
|
||||||
|
|||||||
Reference in New Issue
Block a user