|
|
@@ -7,7 +7,7 @@ function (angular, _) {
|
|
|
|
|
|
var module = angular.module('grafana.services');
|
|
|
|
|
|
- module.service('alertSrv', function($timeout) {
|
|
|
+ module.service('alertSrv', function($timeout, $sce) {
|
|
|
var self = this;
|
|
|
|
|
|
// List of all alert objects
|
|
|
@@ -17,7 +17,7 @@ function (angular, _) {
|
|
|
var
|
|
|
_a = {
|
|
|
title: title || '',
|
|
|
- text: text || '',
|
|
|
+ text: $sce.trustAsHtml(text || ''),
|
|
|
severity: severity || 'info',
|
|
|
},
|
|
|
_ca = angular.toJson(_a),
|
|
|
@@ -46,4 +46,4 @@ function (angular, _) {
|
|
|
self.list = [];
|
|
|
};
|
|
|
});
|
|
|
-});
|
|
|
+});
|