OfficeIMO.Html.AngleSharp 3.6.1

Prefix Reserved
dotnet add package OfficeIMO.Html.AngleSharp --version 3.6.1
                    
NuGet\Install-Package OfficeIMO.Html.AngleSharp -Version 3.6.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="OfficeIMO.Html.AngleSharp" Version="3.6.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OfficeIMO.Html.AngleSharp" Version="3.6.1" />
                    
Directory.Packages.props
<PackageReference Include="OfficeIMO.Html.AngleSharp" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add OfficeIMO.Html.AngleSharp --version 3.6.1
                    
#r "nuget: OfficeIMO.Html.AngleSharp, 3.6.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package OfficeIMO.Html.AngleSharp@3.6.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=OfficeIMO.Html.AngleSharp&version=3.6.1
                    
Install as a Cake Addin
#tool nuget:?package=OfficeIMO.Html.AngleSharp&version=3.6.1
                    
Install as a Cake Tool

OfficeIMO.Html.AngleSharp

AngleSharp-backed parsing, selectors and serialization for the owned OfficeIMO HTML document model. Parsing is inert: it does not execute scripts or fetch resources.

dotnet add package OfficeIMO.Html.AngleSharp

This includes OfficeIMO.Html.Core. Keep directly referenced OfficeIMO packages on the same version. Install OfficeIMO.Html for resource policy, conversion, styles and rendering; it includes this provider.

using OfficeIMO.Html.Dom;
using OfficeIMO.Html.Providers;

HtmlDocument document = AngleSharpHtmlParser.Instance.ParseDocument(
    "<h1>Hello</h1>", new HtmlParseOptions());
HtmlDocument edited = document.Edit(editor => {
    editor.QuerySelector("h1")!.TextContent = "Updated";
});
string html = edited.OuterHtml;

HtmlDocument table = AngleSharpHtmlParser.Instance.ParseDocument(
    "<table><tbody><tr id='items'></tr></tbody></table>", new HtmlParseOptions());
HtmlDocumentFragment cells = AngleSharpHtmlParser.Instance.ParseFragment(
    "<td>A</td><td>B</td>", table.QuerySelector("#items")!, new HtmlParseOptions());

The owned tree is the long-lived source of truth. The provider caches its native selector and serializer projection weakly. When a caller still holds the native document, the bridge preserves that document identity and can rebuild only its maps after collection. HtmlConversionDocument keeps conversion-only parsing on the native fast path until its owned Document is requested, then allows the duplicate source projection to be reclaimed. The existing CSS/layout engine still uses a structural native-DOM adapter internally. This package does not claim dependency independence or browser execution. Source and tree budgets are enforced before downstream conversion work; parsing remains subject to the underlying parser's cooperative cancellation behavior.

AngleSharpEncodingProvider implements the owned IHtmlEncodingProvider charset contract. It retains AngleSharp web aliases and System.Text.Encoding.CodePages; initialization preserves the existing process-wide code-page registration. The HTML conversion package owns byte-order-mark precedence, HTML prescanning, CSS decoding rules and stream lifetime. This provider supplies label resolution.

Native trees are constructed before node/depth budgets can be checked. Source length is checked first, and parser cancellation is cooperative. Query results use owned nodes, including detached nodes. Invalid selectors throw ArgumentException. Conversion exports the attached tree, including template content. A detached tree is materialized only when that tree is queried or serialized; unrelated detached trees do not affect conversion or document queries. ParseDocument handles complete HTML documents. ParseFragment accepts an owned context element and returns a fragment in an independent owned document. The adapter reconstructs foreign and ancestor-form context where the retained native fragment API does not preserve it. Table insertion modes use the native fragment path. Both paths apply the same source, node, depth and cooperative-cancellation options.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 is compatible.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on OfficeIMO.Html.AngleSharp:

Package Downloads
OfficeIMO.Html

HTML parsing, resource policy, CSS layout, diagnostics, and provider-neutral render scenes for OfficeIMO converters.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.6.1 567 11/10/2026
3.6.0 1,222 11/6/2026
3.5.3 2,023 10/31/2026
3.5.2 2,166 10/24/2026
3.5.1 8,905 10/16/2026
3.4.5 12,972 10/10/2026
3.4.4 7,138 9/27/2026