Skip to content

Commit

Permalink
fix: prevent XSS in AnsiDisplay component (#397)
Browse files Browse the repository at this point in the history
Co-authored-by: UncleGedd <42304551+UncleGedd@users.noreply.github.com>
  • Loading branch information
bburky and UncleGedd authored Nov 1, 2024
1 parent 14092df commit 60d52ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ui/src/lib/components/AnsiDisplay/component.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
const convert = new Convert({
newline: true,
stream: true,
escapeXML: true,
})
let termElement: HTMLElement | null
let scrollAnchor: Element | null | undefined
Expand Down

0 comments on commit 60d52ee

Please sign in to comment.