From 7229c59b8ecddba4e7b909a1091f49e97f28ecbc Mon Sep 17 00:00:00 2001 From: Mitsuhiro Tanda Date: Sun, 30 Aug 2015 15:06:35 +0900 Subject: [PATCH] escape {} in tip --- public/app/directives/misc.js | 1 + 1 file changed, 1 insertion(+) diff --git a/public/app/directives/misc.js b/public/app/directives/misc.js index 11c1334d553..f6b06355274 100644 --- a/public/app/directives/misc.js +++ b/public/app/directives/misc.js @@ -13,6 +13,7 @@ function (angular, kbn) { link: function(scope, elem, attrs) { var _t = ''; + _t = _t.replace(/{/g, '\\{').replace(/}/g, '\\}'); elem.replaceWith($compile(angular.element(_t))(scope)); } };