mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
feat: access archived chats as admin
This commit is contained in:
@@ -82,7 +82,7 @@
|
||||
|
||||
// Open all links in a new tab/window (from https://github.com/markedjs/marked/issues/655#issuecomment-383226346)
|
||||
const origLinkRenderer = renderer.link;
|
||||
renderer.link = (href, title, text) => {
|
||||
renderer.link = (href, title, text) => {
|
||||
const html = origLinkRenderer.call(renderer, href, title, text);
|
||||
return html.replace(/^<a /, '<a target="_blank" rel="nofollow" ');
|
||||
};
|
||||
|
||||
@@ -17,9 +17,7 @@ export const sanitizeResponseContent = (content: string) => {
|
||||
};
|
||||
|
||||
export const revertSanitizedResponseContent = (content: string) => {
|
||||
return content
|
||||
.replaceAll('<', '<')
|
||||
.replaceAll('>', '>');
|
||||
return content.replaceAll('<', '<').replaceAll('>', '>');
|
||||
};
|
||||
|
||||
export const capitalizeFirstLetter = (string) => {
|
||||
|
||||
Reference in New Issue
Block a user