AngleSharp VS HtmlSanitizer

Compare AngleSharp vs HtmlSanitizer and see what are their differences.

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)

HtmlSanitizer

Cleans HTML to avoid XSS attacks (by mganss)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
AngleSharp HtmlSanitizer
15 3
4,994 1,478
1.4% -
8.6 8.3
9 days ago 7 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.

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.

HtmlSanitizer

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

What are some alternatives?

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

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.

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:

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

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

dotless - .NET Port of the ruby Less CSS lib

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.

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.