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,
|
24
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2FuaXRpemVIdG1sLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvc2ltcG8tdWkvc3JjL2xpYi9zZXJ2aWNlcy9zYW5pdGl6ZUh0bWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLElBQUksRUFBaUIsTUFBTSxlQUFlLENBQUM7OztBQU9wRCxNQUFNLE9BQU8sZ0JBQWdCO0lBRTNCLFlBQW9CLFVBQXVCO1FBQXZCLGVBQVUsR0FBVixVQUFVLENBQWE7SUFDM0MsQ0FBQztJQUVELFNBQVMsQ0FBQyxDQUFRO1FBQ2hCLElBQUksQ0FBQyxDQUFDLEVBQUUsQ0FBQztZQUNQLE9BQU8sRUFBRSxDQUFDLENBQUUsK0RBQStEO1FBQzdFLENBQUM7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|
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 }); }
|