An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: https://github.com/siyuan-note/siyuan/issues/11255
Vanessa88b79c43edff
diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.tsindex 9cfa6dc0a4..b8808b88a4 100644--- a/app/src/protyle/render/av/cell.ts+++ b/app/src/protyle/render/av/cell.ts@@ -30,7 +30,7 @@ const renderCellURL = (urlContent: string) => {// 不是 url 地址}// https://github.com/siyuan-note/siyuan/issues/9291- return `<span class="av__celltext av__celltext--url" data-type="url" data-href="${urlContent}"><span>${host}</span><span class="ft__on-surface">${suffix}</span></span>`;+ return `<span class="av__celltext av__celltext--url" data-type="url" data-href="${urlContent}"><span>${host}</span><span class="ft__on-surface">${Lute.EscapeHTMLStr(suffix)}</span></span>`;};export const getCellText = (cellElement: HTMLElement | false) => {@@ -660,10 +660,12 @@ export const renderCellAttr = (cellElement: Element, value: IAVCellValue) => {export const renderCell = (cellValue: IAVCellValue, rowIndex = 0) => {let text = "";- if (["text", "template"].includes(cellValue.type)) {- text = `<span class="av__celltext">${cellValue ? (cellValue[cellValue.type as "text"].content || "") : ""}</span>`;+ if ("template" === cellValue.type) {+ text = `<span class="av__celltext">${cellValue ? (Lute.EscapeHTMLStr(cellValue.template.content) || "") : ""}</span>`;+ } else if ("text" === cellValue.type) {+ text = `<span class="av__celltext">${cellValue ? (Lute.EscapeHTMLStr(cellValue.text.content) || "") : ""}</span>`;} else if (["email", "phone"].includes(cellValue.type)) {- text = `<span class="av__celltext av__celltext--url" data-type="${cellValue.type}">${cellValue ? cellValue[cellValue.type as "email"].content : ""}</span>`;+ text = `<span class="av__celltext av__celltext--url" data-type="${cellValue.type}">${cellValue ? Lute.EscapeHTMLStr(cellValue[cellValue.type as "email"].content) : ""}</span>`;} else if ("url" === cellValue.type) {text = renderCellURL(cellValue?.url?.content || "");} else if (cellValue.type === "block") {