Spaces:
Build error
Build error
Commit
•
a415295
1
Parent(s):
9726499
🩹 Do not sanitize ½ and other html entities
Browse files
src/lib/components/chat/ChatMessage.svelte
CHANGED
@@ -18,11 +18,10 @@
|
|
18 |
.replaceAll(/<\|[a-z]+\|>/g, " ")
|
19 |
.replaceAll(/<br\s?\/?>/gi, "\n")
|
20 |
.trim()
|
21 |
-
.replaceAll("&", "&")
|
22 |
.replaceAll("<", "<");
|
23 |
}
|
24 |
function unsanitizeMd(md: string) {
|
25 |
-
return md.replaceAll("<", "<")
|
26 |
}
|
27 |
|
28 |
export let message: Message;
|
|
|
18 |
.replaceAll(/<\|[a-z]+\|>/g, " ")
|
19 |
.replaceAll(/<br\s?\/?>/gi, "\n")
|
20 |
.trim()
|
|
|
21 |
.replaceAll("<", "<");
|
22 |
}
|
23 |
function unsanitizeMd(md: string) {
|
24 |
+
return md.replaceAll("<", "<");
|
25 |
}
|
26 |
|
27 |
export let message: Message;
|