define(function (require) {
  var angular = require('angular');
  var module = require('ui/modules').get('kibana');

  // Simple filter to allow using ng-bind-html without explicitly calling $sce.trustAsHtml in a controller
  // (See http://goo.gl/mpj9o2)
  module.filter('trustAsHtml', function ($sce) {
    return $sce.trustAsHtml;
  });
});
