Update vite and replace escaped doublequotes with normal representation

This commit is contained in:
thiloho
2025-04-06 09:41:31 +02:00
parent d06664931a
commit 70a81158ef
4 changed files with 7 additions and 7 deletions

View File

@@ -143,7 +143,7 @@
{#if form?.logId === id && form?.currentDiff}
<pre>{@html DOMPurify.sanitize(
// .replace takes escaped text representations of line breaks and converts them to real line breaks that render correctly in HTML
form.currentDiff.replace(/\\r\\n|\\n|\\r/g, "\n"),
form.currentDiff.replace(/\\r\\n|\\n|\\r/g, "\n").replace(/\\\"/g, '"'),
{
ALLOWED_TAGS: ["ins", "del"]
}