Merge pull request #1665 from dannyl1u/fix/html-br-tag-escaped

fix: <br> is not escaped in output text
This commit is contained in:
Timothy Jaeryang Baek 2024-04-22 07:55:52 -07:00 committed by GitHub
commit 1e76dbc9a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -35,7 +35,6 @@ export const sanitizeResponseContent = (content: string) => {
.replace(/<\|[a-z]+\|$/, '')
.replace(/<$/, '')
.replaceAll(/<\|[a-z]+\|>/g, ' ')
.replaceAll(/<br\s?\/?>/gi, '\n')
.replaceAll('<', '&lt;')
.trim();
};