We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c90bfc3 commit e78dc69Copy full SHA for e78dc69
1 file changed
select2.js
@@ -698,7 +698,7 @@ the specific language governing permissions and limitations under the Apache Lic
698
label=$(document.createElement("div"));
699
label.addClass("select2-result-label");
700
701
- formatted=opts.formatResult(result, label, query);
+ formatted=opts.escapeMarkup(opts.formatResult(result, label, query));
702
if (formatted!==undefined) {
703
label.html(formatted);
704
}
0 commit comments