feat: replace amp; fith &

This commit is contained in:
Nevo David 2025-07-20 16:01:51 +07:00
parent e60ed4f72d
commit 453e20e418
1 changed files with 1 additions and 0 deletions

View File

@ -150,6 +150,7 @@ export const stripHtmlValidation = (
}
const html = (value || '')
.replace(/&/gi, '&')
.replace(/ /gi, ' ')
.replace(/^<p[^>]*>/i, '')
.replace(/<p[^>]*>/gi, '\n')