Skip to content

Commit df22e64

Browse files
committed
feat: strip html
1 parent dc67fd0 commit df22e64

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/frontend/src/components/launches/calendar.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ import i18next from 'i18next';
5555
import { AddEditModal } from '@gitroom/frontend/components/new-launch/add.edit.modal';
5656
import { deleteDialog } from '@gitroom/react/helpers/delete.dialog';
5757
import { useVariables } from '@gitroom/react/helpers/variable.context';
58+
import { stripHtmlValidation } from '@gitroom/helpers/utils/strip.html.validation';
5859

5960
// Extend dayjs with necessary plugins
6061
extend(isSameOrAfter);
@@ -954,7 +955,7 @@ const CalendarItem: FC<{
954955
{state === 'DRAFT' ? t('draft', 'Draft') + ': ' : ''}
955956
</div>
956957
<div className="w-full overflow-hidden overflow-ellipsis text-start">
957-
{removeMd(post.content).replace(/\n/g, ' ')}
958+
{stripHtmlValidation('none', post.content)}
958959
</div>
959960
</div>
960961
</div>

0 commit comments

Comments
 (0)