From a6cff35351d418272d137013cd536c26e978b6f6 Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 17 Feb 2022 00:19:51 -0600 Subject: move some stuff and change how constants are done --- src/lib/utils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib/utils.ts') diff --git a/src/lib/utils.ts b/src/lib/utils.ts index c2a955a..ae0c5f0 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -61,7 +61,8 @@ export function formattingCodeToHtml(formatted: string): string { reset() } } else { - htmlOutput += character + // no xss! + htmlOutput += character.replace(/&/g, '&').replace(//g, '>') } } reset() -- cgit