sanitize note title

This commit is contained in:
zadam
2022-07-05 22:40:41 +02:00
parent e7db262559
commit 4fc686bbbc
9 changed files with 21 additions and 13 deletions

View File

@@ -77,7 +77,9 @@ export default class EditedNotesWidget extends CollapsibleWidget {
);
}
else {
$item.append(editedNote.notePath ? await linkService.createNoteLink(editedNote.notePath.join("/"), {showNotePath: true}) : editedNote.title);
$item.append(editedNote.notePath
? await linkService.createNoteLink(editedNote.notePath.join("/"), {showNotePath: true})
: $("<span>").text(editedNote.title));
}
if (i < editedNotes.length - 1) {