diff --git a/coffee/lib/abstract-chosen.coffee b/coffee/lib/abstract-chosen.coffee index d53c968fb81..e15282bee53 100644 --- a/coffee/lib/abstract-chosen.coffee +++ b/coffee/lib/abstract-chosen.coffee @@ -51,7 +51,7 @@ class AbstractChosen choice_label: (item) -> if @include_group_label_in_selected and item.group_label? - "#{item.group_label}#{item.html}" + "#{this.escape_html(item.group_label)}#{item.html}" else item.html