Skip to content

Commit

Permalink
fix: 외부 검색 불필요한 태그 제거 (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
Parkjyun authored Jan 24, 2025
1 parent 2b5383b commit 5711b29
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@ public record LocationResponse(
String oldStreetAddress) {
public static LocationResponse from(Location location) {
return new LocationResponse(
location.getTitle(),
trim(location.getTitle()),
location.getRoadAddress(),
location.getAddress()
);
}
private static String trim(String string) {
return string.replaceAll("<[^>]*>", "");
}
}

0 comments on commit 5711b29

Please sign in to comment.