Commit 92835f0a by Carl Bergquist Committed by GitHub

Merge pull request #5434 from saboorian/master

Escape html chararcters in singlestat renderer
parents aecd4877 1e486398
......@@ -195,7 +195,7 @@ class SingleStatCtrl extends MetricsPanelCtrl {
data.valueFormated = this.series[0].alias;
} else if (_.isString(lastValue)) {
data.value = 0;
data.valueFormated = lastValue;
data.valueFormated = _.escape(lastValue);
data.valueRounded = 0;
} else {
data.value = this.series[0].stats[this.panel.valueName];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment