From a40d46b1a96857b6016055f0ede21e8167bc414d Mon Sep 17 00:00:00 2001 From: Nevo David Date: Mon, 22 Sep 2025 00:20:26 +0700 Subject: [PATCH] feat: markdown fix --- libraries/helpers/src/utils/strip.html.validation.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/helpers/src/utils/strip.html.validation.ts b/libraries/helpers/src/utils/strip.html.validation.ts index e1674fe8..1ca17c13 100644 --- a/libraries/helpers/src/utils/strip.html.validation.ts +++ b/libraries/helpers/src/utils/strip.html.validation.ts @@ -168,8 +168,6 @@ export const stripHtmlValidation = ( }) .replace(/&/gi, '&') .replace(/ /gi, ' ') - .replace(/>/gi, '>') - .replace(/</gi, '<') .replace(/

([.\s\S]*?)<\/h2>/g, (match, p1) => { return `

## ${p1}

\n`; }) @@ -196,7 +194,9 @@ export const stripHtmlValidation = ( ), convertMentionFunction ) - ); + ) + .replace(/>/gi, '>') + .replace(/</gi, '<'); } if (value.indexOf('

') === -1 && !none) {