diff --git a/assets/js/selectWoo/selectWoo.full.js b/assets/js/selectWoo/selectWoo.full.js index 85660995153..49c70d26ab7 100644 --- a/assets/js/selectWoo/selectWoo.full.js +++ b/assets/js/selectWoo/selectWoo.full.js @@ -1613,7 +1613,7 @@ S2.define('select2/selection/single',[ var $rendered = this.$selection.find('.select2-selection__rendered'); var formatted = this.display(selection, $rendered); - $rendered.empty().text(formatted); + $rendered.empty().append(formatted); $rendered.prop('title', selection.title || selection.text); }; diff --git a/assets/js/selectWoo/selectWoo.js b/assets/js/selectWoo/selectWoo.js index 6ca7983fc90..c8ef06456e9 100644 --- a/assets/js/selectWoo/selectWoo.js +++ b/assets/js/selectWoo/selectWoo.js @@ -1613,7 +1613,7 @@ S2.define('select2/selection/single',[ var $rendered = this.$selection.find('.select2-selection__rendered'); var formatted = this.display(selection, $rendered); - $rendered.empty().text(formatted); + $rendered.empty().append(formatted); $rendered.prop('title', selection.title || selection.text); };