mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 04:03:57 -06:00
Combobox view: escape name string.
This commit is contained in:
parent
50ce93a850
commit
8163fcade7
@ -42,7 +42,7 @@ Discourse.ComboboxView = Discourse.View.extend({
|
||||
if (val) { val = val.toString(); }
|
||||
|
||||
var selectedText = (val === selected) ? "selected" : "";
|
||||
buffer.push("<option " + selectedText + " value=\"" + val + "\" " + self.buildData(o) + ">" + Em.get(o, nameProperty) + "</option>");
|
||||
buffer.push("<option " + selectedText + " value=\"" + val + "\" " + self.buildData(o) + ">" + Handlebars.Utils.escapeExpression(Em.get(o, nameProperty)) + "</option>");
|
||||
});
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user