UNPKG

flowbite-angular

Version:

<div align="center"> <h1>:construction: flowbite-angular (unreleased) :construction:</h1> <p> <a href="https://flowbite.com"> <img alt="Flowbite - Tailwind CSS components" width="350" src="https://flowbite.s3.amazonaws.com/github/logo-github

40 lines (36 loc) 1.4 kB
import * as i0 from '@angular/core'; import { inject, Pipe } from '@angular/core'; import { DomSanitizer } from '@angular/platform-browser'; /** * Sanitize a string as trusted HTML. * * @see `DomSanitizer` */ class SanitizeHtmlPipe { constructor() { this._sanitizer = inject(DomSanitizer); } /** * Return the result of `bypassSecurityTrustHtml` function of DomSanitizer for the parameter. * * @param v The string to be transformed. * @returns The SafeHtml from the DomSanitizer. */ transform(v) { return this._sanitizer.bypassSecurityTrustHtml(v); } static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: SanitizeHtmlPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); } static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.0.4", ngImport: i0, type: SanitizeHtmlPipe, isStandalone: true, name: "sanitizeHtml" }); } } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: SanitizeHtmlPipe, decorators: [{ type: Pipe, args: [{ standalone: true, name: 'sanitizeHtml', }] }] }); /** * Generated bundle index. Do not edit. */ export { SanitizeHtmlPipe }; //# sourceMappingURL=flowbite-angular-sanitize-html.mjs.map