diff --git a/src/components/Changeset/FileDiff.svelte b/src/components/Changeset/FileDiff.svelte index 253e34d..1823f4a 100644 --- a/src/components/Changeset/FileDiff.svelte +++ b/src/components/Changeset/FileDiff.svelte @@ -4,6 +4,7 @@ import type { Modification } from "@bindings/diff/Modification"; import File from "@app/components/File.svelte"; + import { escape } from "lodash"; interface Props { filePath: string; @@ -263,7 +264,7 @@ {@html line.highlight.items .map( s => - `${s.item}`, + `${escape(s.item)}`, ) .join("")} {:else}