From c7b0cbc128409b616d6d99f3209d65b860e484a4 Mon Sep 17 00:00:00 2001 From: wanglin2 <1013335014@qq.com> Date: Wed, 18 Oct 2023 14:30:00 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A=E4=BF=AE=E5=A4=8D=E7=B2=98?= =?UTF-8?q?=E8=B4=B4=E6=96=B9=E5=BC=8F=E5=88=9B=E5=BB=BA=E6=96=B0=E8=8A=82?= =?UTF-8?q?=E7=82=B9=E6=97=B6=E5=A6=82=E6=9E=9C=E7=B2=98=E8=B4=B4=E7=9A=84?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E5=B8=A6=E6=9C=89<>=E7=AD=89html=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=E7=AC=A6=E5=8F=B7=E6=97=B6=E6=96=B0=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E7=9A=84=E8=8A=82=E7=82=B9=E5=86=85=E5=AE=B9=E4=B8=BA=E7=A9=BA?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- simple-mind-map/src/core/render/Render.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/simple-mind-map/src/core/render/Render.js b/simple-mind-map/src/core/render/Render.js index bcc11852..83e98dda 100644 --- a/simple-mind-map/src/core/render/Render.js +++ b/simple-mind-map/src/core/render/Render.js @@ -23,7 +23,8 @@ import { getNodeDataIndex, getNodeIndexInNodeList, setDataToClipboard, - getDataFromClipboard + getDataFromClipboard, + htmlEscape } from '../../utils' import { shapeList } from './node/Shape' import { lineStyleProps } from '../../themes/default' @@ -885,6 +886,7 @@ class Render { Array.isArray(smmData) ? smmData : [smmData] ) } else { + text = htmlEscape(text) const textArr = text.split(/\r?\n|(? { return !!item })