mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-19 10:15:22 +08: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