"...git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "c31ff1f679aba108a8d7219543f11304d1038849"
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) => { ...@@ -36,11 +36,14 @@ export const sanitizeResponseContent = (content: string) => {
.replace(/<$/, '') .replace(/<$/, '')
.replaceAll(/<\|[a-z]+\|>/g, ' ') .replaceAll(/<\|[a-z]+\|>/g, ' ')
.replaceAll('<', '&lt;') .replaceAll('<', '&lt;')
.replaceAll('>', '&gt;')
.trim(); .trim();
}; };
export const revertSanitizedResponseContent = (content: string) => { export const revertSanitizedResponseContent = (content: string) => {
return content.replaceAll('&lt;', '<'); return content
.replaceAll('&lt;', '<')
.replaceAll('&gt;', '>');
}; };
export const capitalizeFirstLetter = (string) => { 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