Skip to main content
Sanitizes and cleans HTML content by removing unwanted elements, attributes, and whitespace. Provides fine-grained control over each cleaning operation through configurable options.

Examples

Arguments

options
SanitizeHtmlOptions
required
Configuration options for sanitization

Returns: string

The sanitized HTML string