Skip to content

Commit

Permalink
Escape the item's group_label when rendering it.
Browse files Browse the repository at this point in the history
  • Loading branch information
Arun Srinivasan committed Jun 7, 2018
1 parent 053057e commit 5ae77b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coffee/lib/abstract-chosen.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class AbstractChosen

choice_label: (item) ->
if @include_group_label_in_selected and item.group_label?
"<b class='group-name'>#{item.group_label}</b>#{item.html}"
"<b class='group-name'>#{this.escape_html(item.group_label)}</b>#{item.html}"
else
item.html

Expand Down

0 comments on commit 5ae77b1

Please # to comment.