Skip to content

Build your personal knowledge base with Trilium Notes

fix note title escaping in export dialog

zadam1dfc37704fdd
diff --git a/src/public/app/widgets/dialogs/export.js b/src/public/app/widgets/dialogs/export.js
index 5e4909b95a..5727aa5e22 100644
--- a/src/public/app/widgets/dialogs/export.js
+++ b/src/public/app/widgets/dialogs/export.js
@@ -213,10 +213,7 @@ export default class ExportDialog extends BasicWidget {
const {noteId, parentNoteId} = treeService.getNoteIdAndParentIdFromNotePath(notePath);
this.branchId = await froca.getBranchId(parentNoteId, noteId);
-
- const noteTitle = await treeService.getNoteTitle(noteId);
-
- this.$noteTitle.html(noteTitle);
+ this.$noteTitle.text(await treeService.getNoteTitle(noteId));
}
exportBranch(branchId, type, format, version) {