app/assets/javascripts/decidim/plans/proposal_picker.js.es6 in decidim-plans-0.16.4 vs app/assets/javascripts/decidim/plans/proposal_picker.js.es6 in decidim-plans-0.16.5

- old
+ new

@@ -26,12 +26,12 @@ ); }, renderItem: function (item, search) { let sanitizedSearch = search.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&"); let re = new RegExp(`(${sanitizedSearch.split(" ").join("|")})`, "gi"); - let title = item[0]; + let title = item[0].replace(/"/g, "&quot;"); let modelId = item[1]; - return `<div class="autocomplete-suggestion" data-model-id="${modelId}" data-val ="${title}">${title.replace(re, "<b>$1</b>")}</div>`; + return `<div class="autocomplete-suggestion" data-model-id="${modelId}" data-val="${title}">${title.replace(re, "<b>$1</b>")}</div>`; }, onSelect: function(event, term, item) { let choose = $("#proposal-picker-choose"); let modelId = item.data("modelId"); let val = item.data("val");