Skip to content

Commit

Permalink
#209 fix : contest body tag
Browse files Browse the repository at this point in the history
  • Loading branch information
sycuuui committed Sep 21, 2024
1 parent b67f2e1 commit d6d9de3
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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-><br/> \t-><t/>
String body = contestReq.body().replace("\n","<br/>")
.replace("\t","<t/>");
//contest build 및 생성
Contest contest = Contest.builder()
.title(contestReq.title())
.body(contestReq.body())
.body(body)
.contestLink(contestReq.contestLink())
.institution(contestReq.institution())
.startedAt(contestReq.startedAt())
Expand Down

0 comments on commit d6d9de3

Please sign in to comment.