mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix: form dropdown, escape autocomplete dropdown items, fixes #9089
This commit is contained in:
@@ -115,7 +115,9 @@ export class FormDropdownCtrl {
|
||||
this.optionCache = options;
|
||||
|
||||
// extract texts
|
||||
let optionTexts = _.map(options, 'text');
|
||||
let optionTexts = _.map(options, op => {
|
||||
return _.escape(op.text);
|
||||
});
|
||||
|
||||
// add custom values
|
||||
if (this.allowCustom) {
|
||||
|
||||
Reference in New Issue
Block a user