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)}`; } } });