function removeFromArray(arr, val) {
  var index = arr.indexOf(val);
  if (val >= 0) {
    arr.splice(index, 1);
  }
}
@ngdoc function
@name pascalprecht.translate.$translateSanitizationProvider#useStrategy
@methodOf pascalprecht.translate.$translateSanitizationProvider

@description
Selects a sanitization strategy. When an array is provided the strategies will be executed in order.

@param {string|StrategyFunction|array} strategy The sanitization strategy / strategies which should be used. Either a name of an existing strategy, a custom strategy function, or an array consisting of multiple names and / or custom functions.
@returns {object} this