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
Oct 4, 2023
Latest stable version

Install

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

Frameworks

.NETFramework4.6.1 .NETStandard2.0

Dependencies

AngleSharp
.NETFramework4.6.1
[0.17.1, 0.17.1]
AngleSharp.Css
.NETFramework4.6.1
[0.17.0, 0.17.0]
[7.0.0, )
AngleSharp
.NETStandard2.0
[0.17.1, 0.17.1]
AngleSharp.Css
.NETStandard2.0
[0.17.0, 0.17.0]
[7.0.0, )

Adoption guide

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

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.