From 88a5fb1f841f043bd515f007d03208e2d289587e Mon Sep 17 00:00:00 2001 From: Ludovico7 Date: Fri, 29 Nov 2024 02:06:58 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20sanitize=20=EB=A1=A4=EB=B0=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/features/editor/utils/domSyncUtils.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/client/src/features/editor/utils/domSyncUtils.ts b/client/src/features/editor/utils/domSyncUtils.ts index fb5f4f5a..53a4a4b9 100644 --- a/client/src/features/editor/utils/domSyncUtils.ts +++ b/client/src/features/editor/utils/domSyncUtils.ts @@ -139,11 +139,7 @@ const setsEqual = (a: Set, b: Set): boolean => { }; const sanitizeText = (text: string): string => { - return text - .replace(/
/g, "\u00A0") - .replace(//g, ">") - .replace(/&/g, "&"); + return text.replace(/
/g, "\u00A0"); }; // 배열 비교 헬퍼 함수