Commit 77c510c3 by Torkel Ödegaard

fix(graph legend): fixed issue with escaping html text in graph legend, and in…

fix(graph legend): fixed issue with escaping html text in graph legend, and in function param, fixes #3482
parent 6ea00a4f
......@@ -79,6 +79,7 @@ function (angular, _) {
this.highlightVariablesAsHtml = function(str) {
if (!str || !_.isString(str)) { return str; }
str = _.escape(str);
this._regex.lastIndex = 0;
return str.replace(this._regex, function(match, g1, g2) {
if (self._values[g1 || g2]) {
......
......@@ -151,7 +151,7 @@ function (angular, _, $) {
html += '</div>';
html += '<div class="graph-legend-alias">';
html += '<a>' + series.label + '</a>';
html += '<a>' + _.escape(series.label) + '</a>';
html += '</div>';
if (panel.legend.values) {
......
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