mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
Merge pull request #2180 from austenadler/dev
Always open links in chat in a new tab
This commit is contained in:
@@ -12,11 +12,14 @@ export const sanitizeResponseContent = (content: string) => {
|
||||
.replace(/<$/, '')
|
||||
.replaceAll(/<\|[a-z]+\|>/g, ' ')
|
||||
.replaceAll('<', '<')
|
||||
.replaceAll('>', '>')
|
||||
.trim();
|
||||
};
|
||||
|
||||
export const revertSanitizedResponseContent = (content: string) => {
|
||||
return content.replaceAll('<', '<');
|
||||
return content
|
||||
.replaceAll('<', '<')
|
||||
.replaceAll('>', '>');
|
||||
};
|
||||
|
||||
export const capitalizeFirstLetter = (string) => {
|
||||
|
||||
Reference in New Issue
Block a user