From 997be84ac45c932e1c28f7904398cb62185f3d27 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sun, 12 Jan 2025 17:59:54 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/13704 --- app/src/protyle/render/av/cell.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.ts index ab3d2f383..2352bff20 100644 --- a/app/src/protyle/render/av/cell.ts +++ b/app/src/protyle/render/av/cell.ts @@ -848,10 +848,10 @@ export const renderCell = (cellValue: IAVCellValue, rowIndex = 0) => { cellValue?.relation?.contents?.forEach((item) => { if (item && item.block) { if (item?.isDetached) { - text += `${item.block.content || window.siyuan.languages.untitled}`; + text += `${Lute.EscapeHTMLStr(item.block.content || window.siyuan.languages.untitled)}`; } else { // data-block-id 用于更新 emoji - text += `${unicode2Emoji(item.block.icon || window.siyuan.storage[Constants.LOCAL_IMAGES].file)}${item.block.content || window.siyuan.languages.untitled}`; + text += `${unicode2Emoji(item.block.icon || window.siyuan.storage[Constants.LOCAL_IMAGES].file)}${Lute.EscapeHTMLStr(item.block.content || window.siyuan.languages.untitled)}`; } } });