feat: fix gt and lt

This commit is contained in:
Nevo David 2025-09-01 10:43:17 +07:00
parent b3f4e63982
commit 5c6617da2a
1 changed files with 3 additions and 1 deletions

View File

@ -207,7 +207,9 @@ export const stripHtmlValidation = (
.replace(/ /gi, ' ')
.replace(/^<p[^>]*>/i, '')
.replace(/<p[^>]*>/gi, '\n')
.replace(/<\/p>/gi, '');
.replace(/<\/p>/gi, '')
.replace(/&gt;/gi, '>')
.replace(/&lt;/gi, '<')
if (none) {
return striptags(html);