HtmlSanitizer VS AngleSharp

Compare HtmlSanitizer vs AngleSharp and see what are their differences.

HtmlSanitizer

Cleans HTML to avoid XSS attacks (by mganss)

AngleSharp

:angel: The ultimate angle brackets parser library parsing HTML5, MathML, SVG and CSS to construct a DOM based on the official W3C specifications. (by AngleSharp)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
HtmlSanitizer AngleSharp
3 15
1,481 4,999
- 1.5%
8.2 8.6
14 days ago 16 days ago
C# C#
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

HtmlSanitizer

Posts with mentions or reviews of HtmlSanitizer. We have used some of these posts to build our list of alternatives and similar projects.

AngleSharp

Posts with mentions or reviews of AngleSharp. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-06-13.

What are some alternatives?

When comparing HtmlSanitizer and AngleSharp you can also consider the following projects:

DOMPurify - DOMPurify - a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. DOMPurify works with a secure default, but offers a lot of configurability and hooks. Demo:

HtmlAgilityPack - Html Agility Pack (HAP) is a free and open-source HTML parser written in C# to read/write DOM and supports plain XPATH or XSLT. It is a .NET code library that allows you to parse "out of the web" HTML files.

DinkToPdf - C# .NET Core wrapper for wkhtmltopdf library that uses Webkit engine to convert HTML pages to PDF.

CsQuery - CsQuery is a complete CSS selector engine, HTML parser, and jQuery port for C# and .NET 4.

QuestPDF - QuestPDF is a modern open-source .NET library for PDF document generation. Offering comprehensive layout engine powered by concise and discoverable C# Fluent API. Easily generate PDF reports, invoices, exports, etc.

dotless - .NET Port of the ruby Less CSS lib

FluentBootstrap

ExCSS - A CSS Parser for .NET. It's BADA55!

Playwright - Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

LtGt

playwright-dotnet - .NET version of the Playwright testing and automation library.

LibSass Host - .NET wrapper around the LibSass library with the ability to support a virtual file system.