diff --git a/addons/web_editor/static/src/js/backend.js b/addons/web_editor/static/src/js/backend.js index 1516a912b61..52ef2017a14 100644 --- a/addons/web_editor/static/src/js/backend.js +++ b/addons/web_editor/static/src/js/backend.js @@ -307,15 +307,7 @@ var FieldTextHtml = widget.extend({ return this.editor.save(); } else if (this._dirty_flag && this.editor && this.editor.buildingBlock) { this.editor.buildingBlock.clean_for_save(); - - // escape text nodes for xml saving - var $escaped_el = this.$content.clone(); - $escaped_el.find('*').addBack().not('script,style').contents().each(function(){ - if(this.nodeType == 3) { - this.nodeValue = _.escape(this.nodeValue); - } - }); - this.internal_set_value( $escaped_el.html() ); + this.internal_set_value( this.$content.html() ); } }, destroy: function () { diff --git a/openerp/tools/translate.py b/openerp/tools/translate.py index 8cebe086bda..12ead8edb0d 100644 --- a/openerp/tools/translate.py +++ b/openerp/tools/translate.py @@ -271,7 +271,7 @@ def xml_translate(callback, value): return trans.get_done() except etree.ParseError: wrapped = "