Skip to content

Commit e78dc69

Browse files
committed
call escape markup on results
1 parent c90bfc3 commit e78dc69

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

select2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ the specific language governing permissions and limitations under the Apache Lic
698698
label=$(document.createElement("div"));
699699
label.addClass("select2-result-label");
700700

701-
formatted=opts.formatResult(result, label, query);
701+
formatted=opts.escapeMarkup(opts.formatResult(result, label, query));
702702
if (formatted!==undefined) {
703703
label.html(formatted);
704704
}

0 commit comments

Comments
 (0)