diff --git a/src/main/java/org/sopt/app/common/utils/HtmlTagWrapper.java b/src/main/java/org/sopt/app/common/utils/HtmlTagWrapper.java new file mode 100644 index 00000000..9fe1a614 --- /dev/null +++ b/src/main/java/org/sopt/app/common/utils/HtmlTagWrapper.java @@ -0,0 +1,10 @@ +package org.sopt.app.common.utils; + +import lombok.NoArgsConstructor; + +@NoArgsConstructor(access = lombok.AccessLevel.PRIVATE) +public class HtmlTagWrapper { + public static String wrapWithTag(String content, String tag) { + return "<" + tag + ">" + content + ""; + } +} diff --git a/src/main/java/org/sopt/app/facade/HomeFacade.java b/src/main/java/org/sopt/app/facade/HomeFacade.java index 98e73310..34d8e6ff 100755 --- a/src/main/java/org/sopt/app/facade/HomeFacade.java +++ b/src/main/java/org/sopt/app/facade/HomeFacade.java @@ -1,5 +1,7 @@ package org.sopt.app.facade; +import static org.sopt.app.common.utils.HtmlTagWrapper.wrapWithTag; + import java.util.List; import lombok.RequiredArgsConstructor; import lombok.val; @@ -41,7 +43,7 @@ public HomeDescriptionResponse getHomeMainDescription(User user) { .getAllGenerations(); ActivityDurationCalculator calculator = ActivityDurationCalculator.of(ownGenerations); return HomeDescriptionResponse.of( - user.getUsername(), + wrapWithTag(user.getUsername(), "b"), calculator.getActivityDuration() ); }