From fea957731b76c2ed65bad4960e8d6b89c8e17535 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 22 Feb 2023 09:27:51 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/7439 --- app/src/protyle/wysiwyg/keydown.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/wysiwyg/keydown.ts b/app/src/protyle/wysiwyg/keydown.ts index a42d3789f..77c251895 100644 --- a/app/src/protyle/wysiwyg/keydown.ts +++ b/app/src/protyle/wysiwyg/keydown.ts @@ -970,7 +970,7 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => { } const actionElementId = actionElement.getAttribute("data-node-id"); if (selectText !== "") { - writeText(`((${actionElementId} "${selectText}"))`); + writeText(`((${actionElementId} "${Lute.EscapeHTMLStr(selectText)}"))`); } else { fetchPost("/api/block/getRefText", {id: actionElementId}, (response) => { writeText(`((${actionElementId} '${response.data}'))`);