From 107b589a11dfa6a81d97d081d8b2bcb60f05b4e9 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Fri, 17 Apr 2015 17:08:17 +0200 Subject: [FIX] *: correct previous forward port Due to files renaming, some patched should be applied manually to the correct files. Forgot to `git add` these files when committing the forward port... --- addons/web/static/src/js/framework/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/web/static/src/js/framework/utils.js') diff --git a/addons/web/static/src/js/framework/utils.js b/addons/web/static/src/js/framework/utils.js index b13688aa538..5caf995c988 100644 --- a/addons/web/static/src/js/framework/utils.js +++ b/addons/web/static/src/js/framework/utils.js @@ -138,7 +138,7 @@ function json_node_to_xml (node, human_readable, indent) { cr = human_readable ? '\n' : ''; if (typeof(node) === 'string') { - return sindent + node; + return sindent + node.replace(/&/g, '&').replace(//g, '>').replace(/"/g, '"'); } else if (typeof(node.tag) !== 'string' || !node.children instanceof Array || !node.attrs instanceof Object) { throw new Error( _.str.sprintf(_t("Node [%s] is not a JSONified XML node"), -- cgit v1.2.3