Skip to content

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

feat: replace amp; fith &

Nevo David453e20e418b9
diff --git a/libraries/helpers/src/utils/strip.html.validation.ts b/libraries/helpers/src/utils/strip.html.validation.ts
index 82a3d99b8..78c9a7b60 100644
--- a/libraries/helpers/src/utils/strip.html.validation.ts
+++ b/libraries/helpers/src/utils/strip.html.validation.ts
@@ -150,6 +150,7 @@ export const stripHtmlValidation = (
}
const html = (value || '')
+ .replace(/&/gi, '&')
.replace(/ /gi, ' ')
.replace(/^<p[^>]*>/i, '')
.replace(/<p[^>]*>/gi, '\n')