htmlEscapeValue = function (value) {
    var element = angular.element('<div></div>');
    element.text(value); // not chainable, see #1044
    return element.html();
  }
@ngdoc function
@name pascalprecht.translate.$translateSanitization#sanitize
@methodOf pascalprecht.translate.$translateSanitization

@description
Sanitizes a value.

@param {string|object} value The value which should be sanitized.
@param {string} mode The current sanitization mode, either 'params' or 'text'.
@param {string|StrategyFunction|array} [strategy] Optional custom strategy which should be used instead of the currently selected strategy.
@param {string} [context] The context of this call: filter, service. Default is service
@returns {string|object} sanitized value