Skip to content

Commit

Permalink
fix: sanitize 롤백
Browse files Browse the repository at this point in the history
  • Loading branch information
Ludovico7 committed Nov 28, 2024
1 parent 862eabe commit 88a5fb1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions client/src/features/editor/utils/domSyncUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,7 @@ const setsEqual = (a: Set<string>, b: Set<string>): boolean => {
};

const sanitizeText = (text: string): string => {
return text
.replace(/<br>/g, "\u00A0")
.replace(/</g, "&lt;")
.replace(/>/g, "&gt;")
.replace(/&/g, "&amp;");
return text.replace(/<br>/g, "\u00A0");
};

// 배열 비교 헬퍼 함수
Expand Down

0 comments on commit 88a5fb1

Please sign in to comment.