Docs Quickstart Figma Flowbite
1.3.0
Getting started
Customize
Components
API Reference NEW
pipes / Class

SanitizeHtmlPipe

Decorators:@Pipe
Implements:PipeTransform

Sanitize a string as trusted HTML.

See Also

Methods

transform()

implements PipeTransform

Return the result of bypassSecurityTrustHtml function of DomSanitizer for the parameter.

Presentation
transform(v: string): SafeHtml;
Parameters
NameTypeDescription
v
string

The string to be transformed.

Returns
SafeHtml -

The SafeHtml from the DomSanitizer.

Flowbite

© 2019-2024 Flowbite™ is a registered trademark. All Rights Reserved.