summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2015-04-01 19:07:59 +0200
committerChristophe Simonis <chs@odoo.com>2015-04-01 19:07:59 +0200
commit12f600cec9912c8c36598cb14cd01e15eab1c7bf (patch)
tree80e57fcf06bd2558185716ba6aa69f77218e6613 /addons/web/static/src
parentce690649e9f16602cb34a6e536f301852f9f236e (diff)
parent35077af57dd9203b08bb5bc7f2be65d4a34451b6 (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.js2
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, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;');
} 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"),