From dc2bae0da683175a33b072b24225f748a34ef734 Mon Sep 17 00:00:00 2001 From: Masahiko AMANO Date: Fri, 7 Mar 2025 02:56:13 +0300 Subject: [PATCH] fix(web): fix wrong string escaping when rendering quote blocks --- web/embed/static/js/utils.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/embed/static/js/utils.js b/web/embed/static/js/utils.js index c1eacf1..fa5af9b 100644 --- a/web/embed/static/js/utils.js +++ b/web/embed/static/js/utils.js @@ -26,10 +26,10 @@ function datetimeToLocalISO(datetime) { function escapedString(str) { return str - .replace("&", "&") - .replace("<", "<") - .replace(">", ">") - .replace("\n", "
"); + .replaceAll("&", "&") + .replaceAll("<", "<") + .replaceAll(">", ">") + .replaceAll("\n", "
"); } function formToJSON(form) {