simpo-component-library 1.5.53 → 1.5.54

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,6 +6,9 @@ export class SanitizeHtmlPipe {
6
6
  this._sanitizer = _sanitizer;
7
7
  }
8
8
  transform(v) {
9
+ if (!v) {
10
+ return ''; // Return an empty string if value is null, undefined, or empty
11
+ }
9
12
  return this._sanitizer.bypassSecurityTrustHtml(v);
10
13
  }
11
14
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: SanitizeHtmlPipe, deps: [{ token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe }); }
@@ -18,4 +21,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.4", ngImpor
18
21
  standalone: true
19
22
  }]
20
23
  }], ctorParameters: () => [{ type: i1.DomSanitizer }] });
21
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2FuaXRpemVIdG1sLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvc2ltcG8tdWkvc3JjL2xpYi9zZXJ2aWNlcy9zYW5pdGl6ZUh0bWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLElBQUksRUFBaUIsTUFBTSxlQUFlLENBQUM7OztBQU9wRCxNQUFNLE9BQU8sZ0JBQWdCO0lBRTNCLFlBQW9CLFVBQXVCO1FBQXZCLGVBQVUsR0FBVixVQUFVLENBQWE7SUFDM0MsQ0FBQztJQUVELFNBQVMsQ0FBQyxDQUFRO1FBQ2hCLE9BQU8sSUFBSSxDQUFDLFVBQVUsQ0FBQyx1QkFBdUIsQ0FBQyxDQUFDLENBQUMsQ0FBQztJQUNwRCxDQUFDOzhHQVBVLGdCQUFnQjs0R0FBaEIsZ0JBQWdCOzsyRkFBaEIsZ0JBQWdCO2tCQUo1QixJQUFJO21CQUFDO29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1cml0eVRydXN0SHRtbCh2KTtcclxuICB9XHJcbn1cclxuIl19
@@ -2175,6 +2175,9 @@ class SanitizeHtmlPipe {
2175
2175
  this._sanitizer = _sanitizer;
2176
2176
  }
2177
2177
  transform(v) {
2178
+ if (!v) {
2179
+ return ''; // Return an empty string if value is null, undefined, or empty
2180
+ }
2178
2181
  return this._sanitizer.bypassSecurityTrustHtml(v);
2179
2182
  }
2180
2183
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: SanitizeHtmlPipe, deps: [{ token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe }); }