Skip to content

Build your personal knowledge base with Trilium Notes

Merge pull request #694 from TriliumNext/sirius_patch_1

Elian Doranb7b8ab56e974
diff --cc src/services/html_sanitizer.ts
index d3d48eea1f,86bb6bdb6d..0dc9b3d183
--- a/src/services/html_sanitizer.ts
+++ b/src/services/html_sanitizer.ts
@@@ -52,14 -52,14 +52,15 @@@ function sanitize(dirtyHtml: string)
return sanitizeHtml(dirtyHtml, {
allowedTags,
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", "checked" ]
},
+ // Be consistent with `allowedSchemes` in `src\public\app\services\link.js`
allowedSchemes: [
- 'http', 'https', 'ftp', 'ftps', 'mailto', 'data', 'evernote', 'file', 'facetime', 'irc', 'gemini', 'git',
+ 'http', 'https', 'ftp', 'ftps', 'mailto', 'data', 'evernote', 'file', 'facetime', 'gemini', 'git',
'gopher', 'imap', 'irc', 'irc6', 'jabber', 'jar', 'lastfm', 'ldap', 'ldaps', 'magnet', 'message',
'mumble', 'nfs', 'onenote', 'pop', 'rmi', 's3', 'sftp', 'skype', 'sms', 'spotify', 'steam', 'svn', 'udp',
- 'view-source', 'vnc', 'ws', 'wss', 'xmpp', 'jdbc', 'slack'
+ 'view-source', 'vlc', 'vnc', 'ws', 'wss', 'xmpp', 'jdbc', 'slack', 'tel', 'smb', 'zotero'
],
nonTextTags: [
'head'