Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: history

Vanessa26a7efea226c
diff --git a/app/src/history/history.ts b/app/src/history/history.ts
index 763892421d..24723c0390 100644
--- a/app/src/history/history.ts
+++ b/app/src/history/history.ts
@@ -229,7 +229,7 @@ export const openHistory = () => {
let notebookSelectHTML = "";
window.siyuan.notebooks.forEach((item) => {
if (!item.closed) {
- notebookSelectHTML += ` <option value="${item.id}"${item.id === window.siyuan.storage[Constants.LOCAL_HISTORYNOTEID] ? " selected" : ""}>${item.name}</option>`;
+ notebookSelectHTML += ` <option value="${item.id}"${item.id === window.siyuan.storage[Constants.LOCAL_HISTORYNOTEID] ? " selected" : ""}>${escapeHtml(item.name)}</option>`;
}
});
const contentHTML = `<div class="fn__flex-column" style="height: 100%;">