From 909d47f3316b3593a375bfb52535003c6bc9dd4b Mon Sep 17 00:00:00 2001 From: Tyler Murphy <=> Date: Mon, 21 Aug 2023 23:43:01 -0400 Subject: [PATCH] fuck you you stupid browsers stop making thing safe >:( --- public/js/components.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/public/js/components.js b/public/js/components.js index 38af787..0bf0ed1 100644 --- a/public/js/components.js +++ b/public/js/components.js @@ -330,6 +330,13 @@ export function createMultiLineInput(attributes, onSubmit) { if (event.keyCode == 13 && !event.shiftKey) { event.preventDefault() let text = area.innerHTML.trim() + .replaceAll("&", '&') + .replaceAll("<", '<') + .replaceAll(">", '>') + .replaceAll(""", '"') + .replaceAll("'", "'") + + text = text.replaceAll("\n", "
") if (text.length < 1) return if (await onSubmit(text)) {