From 7e9849c67176336a426ab983af1e674773b0fa56 Mon Sep 17 00:00:00 2001 From: Mystikfluu Date: Sun, 3 Jul 2022 21:46:27 +0200 Subject: [PATCH] remove overlapping characters in unescape charsets --- js/htmlescape.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/js/htmlescape.js b/js/htmlescape.js index 042a016..9c6bbe6 100644 --- a/js/htmlescape.js +++ b/js/htmlescape.js @@ -8,9 +8,7 @@ const esca = { '<': '<', '>': '>', "'": ''', -'"': '"', -'`': '\\`', -'\\': '\\\\' +'"': '"' }; const pe = m => esca[m]; @@ -28,9 +26,7 @@ const unes = { ''': "'", ''': "'", '"': '"', -'"': '"', -'\\`': '`', -'\\\\': '\\' +'"': '"' }; const cape = m => unes[m];