Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -548,7 +548,7 @@ async def read_items():
|
|
| 548 |
.replace(/&/g, "&")
|
| 549 |
.replace(/</g, "<")
|
| 550 |
.replace(/>/g, ">");
|
| 551 |
-
return escaped.replace(/\n/g, "<br>");
|
| 552 |
}
|
| 553 |
|
| 554 |
const BOT_ICON = `<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 3v2.2" stroke="white" stroke-width="1.8" stroke-linecap="round"/><circle cx="12" cy="6.4" r="1.1" fill="white"/><rect x="5" y="8" width="14" height="10" rx="3" stroke="white" stroke-width="1.8"/><circle cx="9" cy="13" r="1.3" fill="white"/><circle cx="15" cy="13" r="1.3" fill="white"/><path d="M9 16.2h6" stroke="white" stroke-width="1.6" stroke-linecap="round"/></svg>`;
|
|
|
|
| 548 |
.replace(/&/g, "&")
|
| 549 |
.replace(/</g, "<")
|
| 550 |
.replace(/>/g, ">");
|
| 551 |
+
return escaped.replace(/\\n/g, "<br>");
|
| 552 |
}
|
| 553 |
|
| 554 |
const BOT_ICON = `<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 3v2.2" stroke="white" stroke-width="1.8" stroke-linecap="round"/><circle cx="12" cy="6.4" r="1.1" fill="white"/><rect x="5" y="8" width="14" height="10" rx="3" stroke="white" stroke-width="1.8"/><circle cx="9" cy="13" r="1.3" fill="white"/><circle cx="15" cy="13" r="1.3" fill="white"/><path d="M9 16.2h6" stroke="white" stroke-width="1.6" stroke-linecap="round"/></svg>`;
|