From 22db79e9600cb7468da7e8082b7ae1ba83e068a4 Mon Sep 17 00:00:00 2001 From: caadiq Date: Sat, 10 Jan 2026 00:35:28 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20PC=20=EA=B3=B5=EA=B0=9C=20=EC=9D=BC?= =?UTF-8?q?=EC=A0=95=20=ED=8E=98=EC=9D=B4=EC=A7=80=20HTML=20=EC=97=94?= =?UTF-8?q?=ED=8B=B0=ED=8B=B0=20=EB=94=94=EC=BD=94=EB=94=A9=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - decodeHtmlEntities 함수 추가하여 < > 등 올바르게 표시 - 레이아웃 변경 없음 (원래 상태 유지) --- frontend/src/pages/pc/public/Schedule.jsx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/pc/public/Schedule.jsx b/frontend/src/pages/pc/public/Schedule.jsx index 62e30bb..df3e0c1 100644 --- a/frontend/src/pages/pc/public/Schedule.jsx +++ b/frontend/src/pages/pc/public/Schedule.jsx @@ -7,6 +7,14 @@ import { useInView } from 'react-intersection-observer'; import { getTodayKST } from '../../../utils/date'; import { getSchedules, getCategories, searchSchedules as searchSchedulesApi } from '../../../api/public/schedules'; +// HTML 엔티티 디코딩 함수 +const decodeHtmlEntities = (text) => { + if (!text) return ''; + const textarea = document.createElement('textarea'); + textarea.innerHTML = text; + return textarea.value; +}; + function Schedule() { const navigate = useNavigate(); @@ -840,7 +848,7 @@ function Schedule() { {/* 스케줄 내용 */}
-

{schedule.title}

+

{decodeHtmlEntities(schedule.title)}

{schedule.time && ( @@ -927,7 +935,7 @@ function Schedule() { {formatted.weekday}
-

{schedule.title}

+

{decodeHtmlEntities(schedule.title)}

{schedule.time && (