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) {