Source:unsafe-html.filter.js

(function () {
  'use strict';
  // Unsafe
  angular.module('mohistory').filter('unsafe', unSafe);
  unSafe.$inject = ['$sce'];
  /**
   * Bind HTML input, so weird characters are rendered correctly.
   * @memberof mohistory
   * @name unSafe
   * @ngdoc filter
   * @param {object} $sce A service that provides Strict Contextual Escaping services
   */
  function unSafe($sce) {
    return function (stuff) {
      if (typeof stuff !== 'string') {
        stuff = String(stuff);
      }
      return $sce.trustAsHtml(stuff);
    }
  }
})();