mirror of
https://github.com/zadam/trilium.git
synced 2025-11-04 13:39:01 +01:00
Merge branch 'develop' of ssh://github.com/TriliumNext/Notes into develop
This commit is contained in:
commit
d9e39fa792
@ -302,9 +302,7 @@ async function importZip(taskContext: TaskContext, fileBuffer: Buffer, importRoo
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (taskContext.data?.safeImport) {
|
if (taskContext.data?.safeImport) {
|
||||||
console.log("Before", content);
|
|
||||||
content = htmlSanitizer.sanitize(content);
|
content = htmlSanitizer.sanitize(content);
|
||||||
console.log("After", content);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
content = content.replace(/<html.*<body[^>]*>/gis, "");
|
content = content.replace(/<html.*<body[^>]*>/gis, "");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user