mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-30 03:32:26 +08:00
fix(import): check boxes not preserved on safe import
This commit is contained in:
parent
5a6151e225
commit
6b973e835e
@ -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',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user