Added newlines filter to text panel, set default.json to Logstash instructional message with loader

This commit is contained in:
Rashid Khan
2013-02-16 10:28:03 -07:00
parent 6d78d69c07
commit 0a94593fc9
3 changed files with 23 additions and 292 deletions
+14 -1
View File
@@ -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, '&amp;')
.replace(/>/g, '&gt;')
.replace(/</g, '&lt;');
}
});