π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
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.tsxindex 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.tsindex 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;}