Added newlines filter to text panel, set default.json to Logstash instructional message with loader
This commit is contained in:
+14
-1
@@ -14,4 +14,17 @@ angular.module('kibana.text', [])
|
||||
$scope.init = function() {
|
||||
}
|
||||
$scope.init();
|
||||
})
|
||||
})
|
||||
.filter('newlines', function(){
|
||||
return function (input) {
|
||||
return input.replace(/\n/g, '<br/>');
|
||||
}
|
||||
})
|
||||
.filter('striphtml', function () {
|
||||
return function(text) {
|
||||
return text
|
||||
.replace(/&/g, '&')
|
||||
.replace(/>/g, '>')
|
||||
.replace(/</g, '<');
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user