Skip to content

πŸ“¨ The ultimate agentic social media scheduling tool πŸ€–

feat: fix validation

Nevo David3ef1bf836502
diff --git a/apps/frontend/src/components/launches/general.preview.component.tsx b/apps/frontend/src/components/launches/general.preview.component.tsx
index 5014b20b8..f4a74c63f 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 `<span class="font-bold" style="color: #ae8afc">${match1.trim()}${match2}</span>`;
})
diff --git a/libraries/helpers/src/utils/strip.html.validation.ts b/libraries/helpers/src/utils/strip.html.validation.ts
index 5e4d8e7ea..82a3d99b8 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;
}