text: "use strict";
  Object.defineProperty(exports, "__esModule", { value: true });
  var core_1 = require("@angular/core");
  var StripTagsPipe = (function () {
      function StripTagsPipe() {
      }
      StripTagsPipe.prototype.transform = function (text) {
          var allowedTags = [];
          for (var _i = 1; _i < arguments.length; _i++) {
              allowedTags[_i - 1] = arguments[_i];
          }
          return allowedTags.length > 0
              ? text.replace(new RegExp("<(?!/?(" + allowedTags.join('|') + ")s*/?)[^>]+>", 'g'), '')
              : text.replace(/<(?:.|\s)*?>/g, '');
      };
      return StripTagsPipe;
  }());
  StripTagsPipe.decorators = [
      { type: core_1.Pipe, args: [{ name: 'stripTags' },] },
  ];
  /** @nocollapse */
  StripTagsPipe.ctorParameters = function () { return []; };
  exports.StripTagsPipe = StripTagsPipe;
  //# sourceMappingURL=strip-tags.js.map