Commit c9799991 authored by Austen Adler's avatar Austen Adler
Browse files

Also replace > with >

parent 3a1fbb93
......@@ -36,11 +36,14 @@ export const sanitizeResponseContent = (content: string) => {
.replace(/<$/, '')
.replaceAll(/<\|[a-z]+\|>/g, ' ')
.replaceAll('<', '&lt;')
.replaceAll('>', '&gt;')
.trim();
};
export const revertSanitizedResponseContent = (content: string) => {
return content.replaceAll('&lt;', '<');
return content
.replaceAll('&lt;', '<')
.replaceAll('&gt;', '>');
};
export const capitalizeFirstLetter = (string) => {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment