feat: strip html

This commit is contained in:
Nevo David 2025-07-21 17:48:05 +07:00
parent dc67fd0bed
commit df22e642f9
1 changed files with 2 additions and 1 deletions

View File

@ -55,6 +55,7 @@ import i18next from 'i18next';
import { AddEditModal } from '@gitroom/frontend/components/new-launch/add.edit.modal';
import { deleteDialog } from '@gitroom/react/helpers/delete.dialog';
import { useVariables } from '@gitroom/react/helpers/variable.context';
import { stripHtmlValidation } from '@gitroom/helpers/utils/strip.html.validation';
// Extend dayjs with necessary plugins
extend(isSameOrAfter);
@ -954,7 +955,7 @@ const CalendarItem: FC<{
{state === 'DRAFT' ? t('draft', 'Draft') + ': ' : ''}
</div>
<div className="w-full overflow-hidden overflow-ellipsis text-start">
{removeMd(post.content).replace(/\n/g, ' ')}
{stripHtmlValidation('none', post.content)}
</div>
</div>
</div>