diff --git a/app/src/ai/actions.ts b/app/src/ai/actions.ts index da9184c6a..461a3d64a 100644 --- a/app/src/ai/actions.ts +++ b/app/src/ai/actions.ts @@ -11,7 +11,7 @@ import {highlightRender} from "../protyle/markdown/highlightRender"; import {Constants} from "../constants"; import {setStorageVal} from "../protyle/util/compatibility"; import {hasClosestByClassName} from "../protyle/util/hasClosest"; -import {escapeHtml} from "../util/escape"; +import {escapeAttr, escapeHtml} from "../util/escape"; export const fillContent = (protyle: IProtyle, data: string, elements: Element[]) => { setLastNodeRange(getContenteditableElement(elements[elements.length - 1]), protyle.toolbar.range); @@ -70,7 +70,7 @@ export const AIActions = (elements: Element[], protyle: IProtyle) => { const dialog = new Dialog({ title: window.siyuan.languages.save, content: `