From 2222f767a971909d288094a34e2705f0e15447b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Jorel?= Date: Fri, 12 Feb 2021 10:59:49 +0100 Subject: [PATCH] Fix sanitise function HTML uses `>` to encode `>` characters. --- src/scripts/lib/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/lib/utils.ts b/src/scripts/lib/utils.ts index 9a3339d..e34b737 100644 --- a/src/scripts/lib/utils.ts +++ b/src/scripts/lib/utils.ts @@ -93,7 +93,7 @@ export const sanitise = (value: T | string): T | string => { return value .replace(/&/g, '&') - .replace(/>/g, '&rt;') + .replace(/>/g, '>') .replace(/