fix(graph legend): fixed issue with escaping html text in graph legend, and in function param, fixes #3482

This commit is contained in:
Torkel Ödegaard
2015-12-10 13:27:57 +01:00
parent 6ea00a4f7c
commit 77c510c364
2 changed files with 2 additions and 1 deletions

View File

@@ -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]) {