Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/17345

Vanessad24ceba9644f
diff --git a/app/src/block/popover.ts b/app/src/block/popover.ts
index c57719efce..310680f07d 100644
--- a/app/src/block/popover.ts
+++ b/app/src/block/popover.ts
@@ -30,7 +30,7 @@ export const initBlockPopover = (app: App) => {
hasClosestByClassName(event.target, "av__cell");
if (aElement) {
let tooltipClass = "";
- let tip = aElement.getAttribute("aria-label") || "";
+ let tip = escapeHtml(aElement.getAttribute("aria-label")) || "";
if (aElement.classList.contains("av__cell") && !aElement.classList.contains("ariaLabel")) {
if (aElement.classList.contains("av__cell--header")) {
const textElement = aElement.querySelector(".av__celltext");