From d6d9de3fb9abb2be4879acbc3eb2e8012b7f3717 Mon Sep 17 00:00:00 2001
From: sycuuui <102959791+sycuuui@users.noreply.github.com>
Date: Sat, 21 Sep 2024 17:02:31 +0900
Subject: [PATCH] #209 fix : contest body tag
---
.../server/domain/contest/service/ContestService.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/main/java/com/gongjakso/server/domain/contest/service/ContestService.java b/src/main/java/com/gongjakso/server/domain/contest/service/ContestService.java
index 31802d09..c55ba22d 100644
--- a/src/main/java/com/gongjakso/server/domain/contest/service/ContestService.java
+++ b/src/main/java/com/gongjakso/server/domain/contest/service/ContestService.java
@@ -47,10 +47,13 @@ public void save(Member member, MultipartFile image,ContestReq contestReq){
if (image != null && !image.isEmpty()) {
s3Url = s3Client.upload(image, S3_CONTEST_DIR_NAME);
}
+ //contest body data \n->
\t->
+ String body = contestReq.body().replace("\n","
")
+ .replace("\t","");
//contest build 및 생성
Contest contest = Contest.builder()
.title(contestReq.title())
- .body(contestReq.body())
+ .body(body)
.contestLink(contestReq.contestLink())
.institution(contestReq.institution())
.startedAt(contestReq.startedAt())