| 12345678910111213141516171819202122232425262728 |
- angular.module('kibana.text', [])
- .controller('text', function($scope, $rootScope) {
- // Set and populate defaults
- var _d = {
- group : "default",
- content : "",
- style: {},
- }
- _.defaults($scope.panel,_d);
- $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, '<');
- }
- });
|