[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 '&#x27," 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
'&#x27', we are now unable to unescape them.

closes odoo/odoo#122457

X-original-commit: 1516b52cc7266e4cb2afed2941d93f2f9bc21bb9
Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
Signed-off-by: Masereel Pierre <pim@odoo.com>
This commit is contained in:
Pierre Masereel
2023-05-25 19:16:21 +02:00
parent 4b5fb81084
commit 40fdc32c2e
+1 -1
View File
@@ -8,7 +8,7 @@ const htmlCaracters = {
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"'": "&#39;",
"'": "&#x27;",
'"': "&quot;",
"`": "&#x60;",
};