Skip to main content
HtmlSanitizer package icon

HtmlSanitizer

Cleans HTML from constructs that can be used for cross-site scripting (XSS)

Total Downloads
126.3M
126,285,007
Published
Mar 18, 2024
Latest stable version

Install

.NET CLI
dotnet add package HtmlSanitizer --version 8.1.860-beta
Package Manager Console
Install-Package HtmlSanitizer -Version 8.1.860-beta
PackageReference
<PackageReference Include="HtmlSanitizer" Version="8.1.860-beta" />

Frameworks

.NETFramework4.6.1 .NETStandard2.0

Dependencies

AngleSharp
.NETFramework4.6.1
[1.1.2, )
AngleSharp.Css
.NETFramework4.6.1
[1.0.0-beta.139, )
[8.0.0, )
AngleSharp
.NETStandard2.0
[1.1.2, )
AngleSharp.Css
.NETStandard2.0
[1.0.0-beta.139, )
[8.0.0, )

Adoption guide

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

This version is marked prerelease. Validate its API and upgrade path before production use.

Published vulnerability advisories exist for this version. Read the advisory and choose a remediated version before release.

Compatibility metadata lists 2 target frameworks; confirm the exact target used by your application.

How to read this guidance

Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.

Useful next steps

Move from package metadata to a concrete selection or review workflow.