[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) <lpe@odoo.com> Signed-off-by: Masereel Pierre <pim@odoo.com>
This commit is contained in:
@@ -8,7 +8,7 @@ const htmlCaracters = {
|
||||
"&": "&",
|
||||
"<": "<",
|
||||
">": ">",
|
||||
"'": "'",
|
||||
"'": "'",
|
||||
'"': """,
|
||||
"`": "`",
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user