diff --git a/apps/frontend/src/components/launches/general.preview.component.tsx b/apps/frontend/src/components/launches/general.preview.component.tsx index 5014b20b..f4a74c63 100644 --- a/apps/frontend/src/components/launches/general.preview.component.tsx +++ b/apps/frontend/src/components/launches/general.preview.component.tsx @@ -17,7 +17,7 @@ export const GeneralPreviewComponent: FC<{ const mediaDir = useMediaDirectory(); const renderContent = topValue.map((p) => { - const newContent = stripHtmlValidation('plain', p.content, true) + const newContent = stripHtmlValidation('html', p.content, true) .replace(/(@.+?)(\s)/gi, (match, match1, match2) => { return `${match1.trim()}${match2}`; }) diff --git a/libraries/helpers/src/utils/strip.html.validation.ts b/libraries/helpers/src/utils/strip.html.validation.ts index 5e4d8e7e..82a3d99b 100644 --- a/libraries/helpers/src/utils/strip.html.validation.ts +++ b/libraries/helpers/src/utils/strip.html.validation.ts @@ -132,12 +132,12 @@ const underlineMap = { }; export const stripHtmlValidation = ( - type: 'plain' | 'none' | 'normal' | 'markdown' | 'html', + type: 'none' | 'normal' | 'markdown' | 'html', value: string, replaceBold = false, none = false ): string => { - if (type === 'plain') { + if (type === 'html') { return value; }