From 37ed5ce844be2f35c26898c0f93089d52f1b7f00 Mon Sep 17 00:00:00 2001 From: Nicolas Lempereur Date: Tue, 12 Jan 2016 13:22:07 +0100 Subject: [PATCH] [FIX] website_quote: don't unescape menu title If we take content with $().text(), to insert it in another node we have to used $().text(value) also. If like before this commit, we would use $().html() the content would be unescaped one time too much. --- addons/website_quote/static/src/js/website_quotation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/website_quote/static/src/js/website_quotation.js b/addons/website_quote/static/src/js/website_quotation.js index d1193f015fd..0ad294e313f 100644 --- a/addons/website_quote/static/src/js/website_quotation.js +++ b/addons/website_quote/static/src/js/website_quotation.js @@ -84,7 +84,7 @@ website.if_dom_contains('div.o_website_quote', function () { case "h1": id = _.uniqueId('quote_header_'); $(this.parentNode).attr('id',id); - sub_li = $("
  • ").html(''+$(this).text()+'').appendTo(ul); + sub_li = $("
  • ").html('').text($(this).text()).appendTo(ul); sub_ul = null; break; case "h2": @@ -94,7 +94,7 @@ website.if_dom_contains('div.o_website_quote', function () { sub_ul = $("