Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix inclusion of the image into the correct position in ENEX import, closes #3468
zadame40f1fd11adc
diff --git a/src/services/html_sanitizer.js b/src/services/html_sanitizer.jsindex 9164ddfdaa..c675c428a8 100644--- a/src/services/html_sanitizer.js+++ b/src/services/html_sanitizer.js@@ -28,7 +28,8 @@ function sanitize(dirtyHtml) {'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'blockquote', 'p', 'a', 'ul', 'ol','li', 'b', 'i', 'strong', 'em', 'strike', 's', 'del', 'abbr', 'code', 'hr', 'br', 'div','table', 'thead', 'caption', 'tbody', 'tr', 'th', 'td', 'pre', 'section', 'img',- 'figure', 'figcaption', 'span', 'label', 'input'+ 'figure', 'figcaption', 'span', 'label', 'input',+ 'en-media' // for ENEX import],allowedAttributes: {'a': [ 'href', 'class', 'data-note-path' ],@@ -41,6 +42,7 @@ function sanitize(dirtyHtml) {'code': [ 'class' ],'ul': [ 'class' ],'table': [ 'class' ],+ 'en-media': [ 'hash' ]},allowedSchemes: ['http', 'https', 'ftp', 'mailto', 'data', 'evernote'],transformTags,