From 618c9274015eb3e7042a716c4b914ffa31d909bd Mon Sep 17 00:00:00 2001 From: yaya-usman Date: Sun, 15 May 2022 00:08:24 +0300 Subject: [PATCH] improper escaping in edit composer --- src/editor/deserialize.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor/deserialize.ts b/src/editor/deserialize.ts index c6c9fc35200..f3f0d03435d 100644 --- a/src/editor/deserialize.ts +++ b/src/editor/deserialize.ts @@ -29,7 +29,7 @@ const LIST_TYPES = ["UL", "OL", "LI"]; // Escapes all markup in the given text function escape(text: string): string { - return text.replace(/[\\*_[\]`<]|^>/g, match => `\\${match}`); + return text.replace(/[\\*_[\]`<]|^>/g, match => `${match}`); } // Finds the length of the longest backtick sequence in the given text, used for