diff options
| author | Christophe Simonis <chs@odoo.com> | 2015-04-01 19:07:59 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2015-04-01 19:07:59 +0200 |
| commit | 12f600cec9912c8c36598cb14cd01e15eab1c7bf (patch) | |
| tree | 80e57fcf06bd2558185716ba6aa69f77218e6613 /addons/web/static/src | |
| parent | ce690649e9f16602cb34a6e536f301852f9f236e (diff) | |
| parent | 35077af57dd9203b08bb5bc7f2be65d4a34451b6 (diff) | |
[MERGE] forward port of branch 7.0 up to 35077af
Diffstat (limited to 'addons/web/static/src')
| -rw-r--r-- | addons/web/static/src/js/views.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/views.js b/addons/web/static/src/js/views.js index 59b0edaefcd..cbd9a395468 100644 --- a/addons/web/static/src/js/views.js +++ b/addons/web/static/src/js/views.js @@ -1643,7 +1643,7 @@ instance.web.json_node_to_xml = function(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"), |
