mirror of
https://github.com/thiloho/archtika.git
synced 2025-11-22 10:51:36 +01:00
Update vite and replace escaped doublequotes with normal representation
This commit is contained in:
@@ -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"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user