From 5cdc89dc0d5cecc37b9a4f0ee3e1357777449786 Mon Sep 17 00:00:00 2001 From: Taylor Hunt Date: Fri, 17 Jun 2022 15:34:47 -0400 Subject: [PATCH] Avoid double-escape for all characters, not just < --- src/utils/markodown-loader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/markodown-loader.js b/src/utils/markodown-loader.js index efa56c23..55f5a6f2 100644 --- a/src/utils/markodown-loader.js +++ b/src/utils/markodown-loader.js @@ -46,7 +46,7 @@ module.exports = function markodown(source) { .replace(/\s+\([^\)]+\)/g, "") .replace(/\([^\)]+\)/g, "()") .replace(/<\/?code\>/g, "") - .replace(/&lt;/g, "<"); + .replace(/&([a-z0-9]+?);/g, "&$1;"); title = title || linkText;