summaryrefslogtreecommitdiff
path: root/addons/mail/static/src
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2018-03-22 20:05:14 +0100
committerChristophe Simonis <chs@odoo.com>2018-03-22 20:05:14 +0100
commitcdbee48888a9028ed54abc2c764d2b560e0af099 (patch)
tree72dcd7ea458cd6ce14d2e365ee82bea53947dc4a /addons/mail/static/src
parent7d86bdca2111e3aeec8d165814b086c43b62998e (diff)
parent39d9c362c5b67a6c5a5d589daa13941e21358b1d (diff)
[MERGE] forward port branch 11.0 up to 39d9c362c5b
Diffstat (limited to 'addons/mail/static/src')
-rw-r--r--addons/mail/static/src/js/utils.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/mail/static/src/js/utils.js b/addons/mail/static/src/js/utils.js
index 80b7736552c..43f4ae2a477 100644
--- a/addons/mail/static/src/js/utils.js
+++ b/addons/mail/static/src/js/utils.js
@@ -50,6 +50,7 @@ function strip_html (node, transform_children) {
function inline (node, transform_children) {
if (node.nodeType === 3) return node.data;
+ if (node.nodeType === 8) return "";
if (node.tagName === "BR") return " ";
if (node.tagName.match(/^(A|P|DIV|PRE|BLOCKQUOTE)$/)) return transform_children();
node.innerHTML = transform_children();