diff --git a/src/notice/notice.service.ts b/src/notice/notice.service.ts index 8d5f99a..a6cb588 100644 --- a/src/notice/notice.service.ts +++ b/src/notice/notice.service.ts @@ -42,6 +42,10 @@ export class NoticeService { delete notice.authorId; return { ...notice, + contents: notice.contents.map((content) => ({ + ...content, + body: htmlToText(content.body), + })), author: author.name, imageUrl: files?.[0]?.url ? `${this.s3Url}${files[0].url}` : null, title: notice.contents[0].title,