fix(import): check boxes state not preserved on safe import

This commit is contained in:
Elian Doran 2024-12-02 21:08:38 +02:00
parent 6b973e835e
commit 0368b7c252
No known key found for this signature in database

View File

@ -53,7 +53,7 @@ function sanitize(dirtyHtml: string) {
allowedTags,
allowedAttributes: {
"*": [ 'class', 'style', 'title', 'src', 'href', 'hash', 'disabled', 'align', 'alt', 'center', 'data-*' ],
"input": [ "type" ]
"input": [ "type", "checked" ]
},
allowedSchemes: [
'http', 'https', 'ftp', 'ftps', 'mailto', 'data', 'evernote', 'file', 'facetime', 'irc', 'gemini', 'git',