From 40fdc32c2e175a9fe85046e8c21afd439eb62a42 Mon Sep 17 00:00:00 2001 From: Pierre Masereel Date: Wed, 24 May 2023 13:56:22 +0000 Subject: [PATCH] [FIX] web: unescapeHTML doesn't match old _.unescape Since we've created unescapeHTML to replace the _.unescape function. The issue is that _.unescape was using the hex code ''," for the character " ' ". And the new function uses the decimal code ''', but as there are some old domains for dashboard have ben stored escaped with ''', we are now unable to unescape them. closes odoo/odoo#122457 X-original-commit: 1516b52cc7266e4cb2afed2941d93f2f9bc21bb9 Signed-off-by: Lucas Perais (lpe) Signed-off-by: Masereel Pierre --- addons/web/static/src/core/utils/strings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/src/core/utils/strings.js b/addons/web/static/src/core/utils/strings.js index 52003fda46d..093abe21101 100644 --- a/addons/web/static/src/core/utils/strings.js +++ b/addons/web/static/src/core/utils/strings.js @@ -8,7 +8,7 @@ const htmlCaracters = { "&": "&", "<": "<", ">": ">", - "'": "'", + "'": "'", '"': """, "`": "`", };