diff options
| author | Christophe Simonis <chs@odoo.com> | 2015-04-17 17:08:17 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2015-04-17 17:08:17 +0200 |
| commit | 107b589a11dfa6a81d97d081d8b2bcb60f05b4e9 (patch) | |
| tree | 7ece7add3b1ecf71be6e110827554751c4fc93a8 /addons/web/static/src/js/framework/utils.js | |
| parent | a9471c43b952a1b3ecd92dcbcc0719723336acf1 (diff) | |
[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...
Diffstat (limited to 'addons/web/static/src/js/framework/utils.js')
| -rw-r--r-- | addons/web/static/src/js/framework/utils.js | 2 |
1 files changed, 1 insertions, 1 deletions
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, '>').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"), |
