Skip to content

Commit a40d46b

Browse files
committed
feat: markdown fix
1 parent b985223 commit a40d46b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libraries/helpers/src/utils/strip.html.validation.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,6 @@ export const stripHtmlValidation = (
168168
})
169169
.replace(/&/gi, '&')
170170
.replace(/ /gi, ' ')
171-
.replace(/>/gi, '>')
172-
.replace(/&lt;/gi, '<')
173171
.replace(/<h2>([.\s\S]*?)<\/h2>/g, (match, p1) => {
174172
return `<h2>## ${p1}</h2>\n`;
175173
})
@@ -196,7 +194,9 @@ export const stripHtmlValidation = (
196194
),
197195
convertMentionFunction
198196
)
199-
);
197+
)
198+
.replace(/&gt;/gi, '>')
199+
.replace(/&lt;/gi, '<');
200200
}
201201

202202
if (value.indexOf('<p>') === -1 && !none) {

0 commit comments

Comments
 (0)