NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
NuGet, #164 most downloaded on NuGet
This is an agile HTML parser that builds a read/write DOM and supports plain XPATH or XSLT (you actually don't HAVE to understand XPATH nor XSLT to use it, don't worry...). It is a .NET code library that allows you to parse "out of the web" HTML files. The parser is very tolerant with "real world" malformed HTML. The object model is very similar to what proposes System.Xml, but for HTML documents (or streams). --------------------------------------- This library is sponsored by ZZZ Projects: https://entityframework-extensions.net/ https://eval-expression.net/ https://dapper-plus.net/ --------------------------------------- HAP is trusted by companies worldwide with over 150 million downloads.
Latest stable
1.13.1
Last release 1 months ago
12 Oct 2026
Release timing varies
gaps range from 2 weeks to 9 months
Nearly every release is documented
notes for 58 of the last 60 stable releases
18 versions withdrawn
withdrawn after publishing
127 years old
174 releases · first in 1900
Drag across the ruler to compare, or tap a release to open it.
FIXED: Fix HtmlEntity.DeEntitize duplicating '#' on invalid numeric entities- #611
This library is sponsored by Entity Framework Extensions
RELEASED: released the v1.13.0-beta1 as a stable version
RELEASED: released the v1.13.0-beta1 as a stable version
This library is sponsored by Entity Framework Extensions
Your coding agent can read these notes before it upgrades. Set up the MCP server →
FIXED: New nullable issue when on .net 9 #600 and Wrong compilation with nullability support #597 (A big thank to @r-Larch and his PR #596 , all credi
ADDED: New property OriginalOuterLength for OuterLength is incorrect, refering to the reconstructed OuterHtml and not the original #602 FIXED: EndNode
ADDED: New property OriginalOuterLength for OuterLength is incorrect, refering to the reconstructed OuterHtml and not the original #602
FIXED: EndNode is not null for self-closing tags (documentation) #603
MERGED: Don't allocate AttributesCollection in HtmlNode unless needed #558
MERGED: Reduce need to call string.ToLower with proper comparisons #559
This library is sponsored by Entity Framework Extensions
FIXED: High memory usage in WriteAttribute #601 MERGED: Optimize HtmlNode.WriteAttribute #556 MERGED: Add non-boxing enumerator for HtmlNodeCollection
FIXED: High memory usage in WriteAttribute #601
MERGED: Optimize HtmlNode.WriteAttribute #556
MERGED: Add non-boxing enumerator for HtmlNodeCollection #555
This library is sponsored by Entity Framework Extensions
FIXED: The library now target .NET7 instead of .NET8 to avoid all nullable annotations ( #587 , #594 ) issues MERGED: IsOverlappedClosingElement: Inco
FIXED: The library now target .NET7 instead of .NET8 to avoid all nullable annotations (#587, #594) issues
MERGED: IsOverlappedClosingElement: Incorrect Length Check for Minimal Tags #593
MERGED: Use Dictionary.TryGetValue to avoid double lookup #595
This library is sponsored by Entity Framework Extensions
FIXED: Wrong nullable attributes #587
This library is sponsored by Entity Framework Extensions
FIXED: Dependency Vulnerability on System.Text.RegularExpressions #581
This library is sponsored by Entity Framework Extensions
FIXED: Error with LoadFromWebAsync after v1.11.73 #586
This library is sponsored by Entity Framework Extensions
MERGED: Fixes issues with colgroup and caption tags not being closed properly. Issues #584 and #583 (PR #585 )
Added: AttributeValueQuote.InitialExceptWithoutValue to fix #575
AttributeValueQuote.InitialExceptWithoutValue to fix #575This library is sponsored by Entity Framework Extensions
<a href="https://entityframework-extensions.net/"> <kbd> <img src="https://zzzprojects.github.io/images/logo/entityframework-extensions-pub.jpg" alt="Entity Framework Extensions" /> </kbd> </a>
MERGED: Pull Request - Fix AOT warning with HtmlNode.GetAttributeValue #573
OptionEnableBreakLineForInnerText = true, when enabled the br tag will cause a break line for the InnerTextThis library is sponsored by Entity Framework Extensions
<a href="https://entityframework-extensions.net/"> <kbd> <img src="https://zzzprojects.github.io/images/logo/entityframework-extensions-pub.jpg" alt="Entity Framework Extensions" /> </kbd> </a>
RENAMED: The option added in v1.11.67 from OptionThreatCDataBlockAsComment to OptionTreatCDataBlockAsComment
OptionThreatCDataBlockAsComment to OptionTreatCDataBlockAsCommentThis library is sponsored by Entity Framework Extensions
<a href="https://entityframework-extensions.net/"> <kbd> <img src="https://zzzprojects.github.io/images/logo/entityframework-extensions-pub.jpg" alt="Entity Framework Extensions" /> </kbd> </a>
FIXED: Added the right dll, the v1.11.68 was still containing the dll from v1.11.67
This library is sponsored by Entity Framework Extensions
<a href="https://entityframework-extensions.net/"> <kbd> <img src="https://zzzprojects.github.io/images/logo/entityframework-extensions-pub.jpg" alt="Entity Framework Extensions" /> </kbd> </a>
ADDED: OptionThreatCDataBlockAsComment to thread the whole "CDATA" block as a single comment (Issue #571)
OptionThreatCDataBlockAsComment to thread the whole "CDATA" block as a single comment (Issue #571)This library is sponsored by Entity Framework Extensions
<a href="https://entityframework-extensions.net/"> <kbd> <img src="https://zzzprojects.github.io/images/logo/entityframework-extensions-pub.jpg" alt="Entity Framework Extensions" /> </kbd> </a>
Nothing published for this version
FIXED: OptionOutputAsXml = true since version 1.11.65 crossorigin issue #569
This library is sponsored by Entity Framework Extensions
<a href="https://entityframework-extensions.net/"> <kbd> <img src="https://zzzprojects.github.io/images/logo/entityframework-extensions-pub.jpg" alt="Entity Framework Extensions" /> </kbd> </a>
ADDED: A new options OptionWriteEmptyNodesWithoutSpace allows to write "empty node" without the additional space
OptionWriteEmptyNodesWithoutSpace allows to write "empty node" without the additional spaceMERGED: An attribute read without quotes is written without quotes even after the value has been set #565
MERGED: Add tfoot to appropriate fields in IsParentExplicitEnd #563, #562
MERGED: Review Attribute QuoteType Behavior vs InternalQuoteType fixes #552, #516
FIXED: Set PackageLicenseExpression on nuget #544
FIXED: Performance optimization with Avoid creating new strings when parsing PcData #541
ADDED: The option DisableImplicitEnd. When true, instead of implicitly ending a tag, they will explicitly be ended. (Double open tags leave one open e
DisableImplicitEnd. When true, instead of implicitly ending a tag, they will explicitly be ended. (Double <p> <p> open tags leave one <p> open even with option setted #538)UNDO: Fix added in v1.11.57 #529
NOTE: This version has been removed from NuGet. It contained unintended breaking changes.
NOTE: This version has been removed from NuGet. It contained unintended breaking changes.
MERGED: Fix copyright symbol encoding; force UTF-8-BOM encoding for C# files #526 (To remove additional space when creating a manual comment tag added
UPDATED: Due to package vulnerability
Microsoft.NETCore.UniversalWindowsPlatform from 5.2.3 to 5.2.4System.Net.Http from 4.3.2 to 4.3.4FIXED: Trailing slash on void element becomes part of the attribute name #514
ADDED: Custom error when a scenario similar happens: Stackoverflow when using ReplaceChild #513
FIXED: Setting InnerHtml does not assign OwnerDocument to new nodes correctly #512
MERGED: Set inner html as default to implict set ReturnType #509
MERGED: Added ability to set the maximum redirects #503
ADDED: Added ability to set the timeout of an HTTP request #502
FIXED: Setting node name seems to work only partially #497
FIXED: Setting node name seems to work only partially #497
FIXED: StackOverflowException with the file #486 (A no closing "p" tag was inside an "li" tag)
FIXED: CaptureRedirect=true does not capture ANY redirects, ResponseUri = null #483
FIXED: CaptureRedirect=true does not capture ANY redirects, ResponseUri = null #483
FIXED: .Net 3.5 version does not has strong name #478
FIXED: HtmlAttributeCollection: Implementation for ICollection .Remove(HtmlAttribute) violates interface contract #465
FIXED: HtmlAttributeCollection: ICollection .Clear() and ICollection .Remove(HtmlAttribute) methods forget to update Hashitems #463
FIXED: Not all attributes are removed with Remove() if there are multiple attributes of the same name #461
FIXED: Re-added missing reference in UAP that has been removed in #274
UAP that has been removed in #274FIXED: HtmlWeb.Load not work correct #454 (Added option HtmlWeb.AutomaticDecompression)
HtmlWeb.AutomaticDecompression)FIXED: ClonedNode with attributes without quote (like ) becomes when written #450
Thank you a lot to @POFerro for his contribution
FIXED: Issue introduced with changes in v1.11.35
Thank you a lot to @POFerro for his contribution
FIXED: Attribute original name is not preserved after clone #443
Thank you a lot to @POFerro for his contribution
ADDED: Attributes without a value #439
FIXED: HtmlNode.GetAttributeValue(string name, bool def) not working in version 1.11.32 #437
ADDED: node.MoveChild and node.MoveChildren. When moving, a node will be appended and removed from the previous parent
node.MoveChild and node.MoveChildren. When moving, a node will be appended and removed from the previous parentFIXED: node.OuterHtml Lose img element "/" #425
DONE: Missing control over QuoteType used when outputting html #422
htmlDoc.GlobalAttributeValueQuote = AttributeValueQuote.Initial; to keep the parse quote, double quote or none to attributehtmlDoc.GlobalAttributeValueQuote = AttributeValueQuote.None; to force to never add single quote or double quote to attributeADDED: OuterStartIndex as public property
OuterStartIndex as public propertyFIX: stackoverflow exception when load pages has lots of nested tags #415
FIX: Issue when was considering like an ending tag (should be equivalent to )
</br> was considering like an ending tag (should be equivalent to <br>)FIX: Added support to MaxDepth for InnerText: HtmlNode.InternalInnerText should have a level parameter passed in to it #413
ADDED: Added option OptionXmlForceOriginalComment for OptionOutputAsXml adds spaces to comments when using InnerHtml #412
OptionXmlForceOriginalComment for OptionOutputAsXml adds spaces to comments when using InnerHtml #412FIXED: Remove redundant package references from .NET Standard 2.0. #392
FIXED: StackOverflowException when retrieving document node on UWP platform #382
One column per quarter.