diff --git a/web/static/js/graph.js b/web/static/js/graph.js index 4ead10192a..3a87ace499 100644 --- a/web/static/js/graph.js +++ b/web/static/js/graph.js @@ -365,7 +365,7 @@ Prometheus.Graph.prototype.renderLabels = function(labels) { var labelStrings = []; for (label in labels) { if (label != "__name__") { - labelStrings.push("" + label + ": " + labels[label]); + labelStrings.push("" + label + ": " + escapeHTML(labels[label])); } } return labels = "