feat: replace amp; fith &
This commit is contained in:
parent
e60ed4f72d
commit
453e20e418
|
|
@ -150,6 +150,7 @@ export const stripHtmlValidation = (
|
|||
}
|
||||
|
||||
const html = (value || '')
|
||||
.replace(/&/gi, '&')
|
||||
.replace(/ /gi, ' ')
|
||||
.replace(/^<p[^>]*>/i, '')
|
||||
.replace(/<p[^>]*>/gi, '\n')
|
||||
|
|
|
|||
Loading…
Reference in New Issue