NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
NuGet, #161 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: End tag removed when option tag found in html #48 FIXED: End tag is not required #111
FIXED: End tag removed when option tag found in html #48 FIXED: End tag </option> is not required #111
ADDED: Add HtmlNode.HasClass #102 FIXED: I cant Build project after forking and cloning to VS2017 #104
ADDED: Add HtmlNode.HasClass #102 FIXED: I cant Build project after forking and cloning to VS2017 #104
FIXED: Follow redirects (302) while calling pre/post request handlers #92 FIXED: Resolve ordering problem with HtmlNode.RemoveChild(oldchild,keepGrand
Your coding agent can read these notes before it upgrades. Set up the MCP server →
FIXED: Follow redirects (302) while calling pre/post request handlers #92 FIXED: Resolve ordering problem with HtmlNode.RemoveChild(oldchild,keepGrandChildren) #96 ADDED: Add HtmlNode.GetClasses #102
Thank you @damageboy, @LoganHollins for your contribution.
FIXED: Colons In Attribute Names Mangled With OptionOutputAsXml and LoadHtml #95 FIXED: HtmlWeb Class Missing When HAP is upgraded. #94 ADDED: Disable
FIXED: Colons In Attribute Names Mangled With OptionOutputAsXml and LoadHtml #95
FIXED: HtmlWeb Class Missing When HAP is upgraded. #94
ADDED: DisableServerSideCode option to allow to parse <% tag
FIXED: Inverted option OptionAutoCloseOnEnd #88 FIXED: Optimize usage of ToLower() #93 FIXED: InnerText + NewLine, space, tab. (Require BackwardCompat
FIXED: Inverted option OptionAutoCloseOnEnd #88
FIXED: Optimize usage of ToLower() #93
FIXED: InnerText + NewLine, space, tab. (Require BackwardCompatibility = false)
FIXED: Exception with LoadFromBrowser #89 FIXED: Double Escaping and ® When Using OptionOutputAsXml #83 FIXED: DOCTYPE Not Working With OptionOutputAs
FIXED: Exception with LoadFromBrowser #89 FIXED: Double Escaping and ® When Using OptionOutputAsXml #83 FIXED: DOCTYPE Not Working With OptionOutputAsXml #82
FIXED: When Using OptionOutputOriginalCase and OptionOutputAsXml, Upper Case Tags Are Messed Up #85 FIXED: Strong name signing should be consistent ac
FIXED: When Using OptionOutputOriginalCase and OptionOutputAsXml, Upper Case Tags Are Messed Up #85 FIXED: Strong name signing should be consistent across targets #86 FIXED: Missing XML documentation file
FIXED: HtmlNode.innerText contains HTML comments from original markup #80 FIXED: ' html entity is not supported by HtmlEntity.DeEntitize #79 FIXED: St
FIXED: HtmlNode.innerText contains HTML comments from original markup #80 FIXED: ' html entity is not supported by HtmlEntity.DeEntitize #79 FIXED: StackOverflowException #78 FIXED: HAP does not fix nested anchors #53
FIXED: Wrong cache path with url ending with '\' (Pull #75)
FIXED: Wrong cache path with url ending with '' (Pull #75)
Thank you @cilerler for your contribution.
FIXED: Wrong cache path with url ending with '\' (Pull #75) FIXED: Attribute with null value (Issue #76)
FIXED: Wrong cache path with url ending with '' (Pull #75) FIXED: Attribute with null value (Issue #76)
Thank you @cilerler for your contribution.
UNDO Breaking Change: The crc32 class has been reverse to public (as before v1.5.6-beta1) and marked CLSCompliant = false (Issue #42, Pull #57) FIXED:…
UNDO Breaking Change: The crc32 class has been reverse to public (as before v1.5.6-beta1) and marked CLSCompliant = false (Issue #42, Pull #57) FIXED: Issue with '<' character following by space or some other characters that should not be considered as tag (Issue #73)
BREAKING CHANGE: The crc32 class is now internal to be CLSCompliant (Issue #42, Pull #57) ADDED: HtmlDocument.ParsedText (Issue #69)
BREAKING CHANGE: The crc32 class is now internal to be CLSCompliant (Issue #42, Pull #57) ADDED: HtmlDocument.ParsedText (Issue #69)
Thank you @cptjazz for your contribution
Nothing published for this version
Nothing published for this version
FIXED: Built for UAP to any CPU (Issue #72 )
FIXED: Built for UAP to any CPU (Issue #72 )
FIXED: Missing Dependencies assemblie in NuGet package for .NET Standard 2.0
FIXED: Missing Dependencies assemblie in NuGet package for .NET Standard 2.0
ADDED: Version for NETStandard2_0 FIXED: RemoveAt throwing a null exception (Issue #70)
ADDED: Version for NETStandard2_0 FIXED: RemoveAt throwing a null exception (Issue #70)
ADDED: Version for UWP Project (Issue #50)
ADDED: Version for UWP Project (Issue #50)
BREAKING CHANGES: Silverlight will no longer be supported (do not support shared project) MOVED: All projects now use source in shared project OBSOLET…
BREAKING CHANGES: Silverlight will no longer be supported (do not support shared project)
MOVED: All projects now use source in shared project
OBSOLETE: The Crc32 class are now been marked obsolete (Pull #57)
FIXED: The source tag has now the Empty attribute (Issue #63)
FIXED: Form recognized as text node (Issue #45) FIXED: Some DeadLock Issue in method (Issue #59) FIXED: WindowsCodePage has been modified for CodePage
FIXED: Form recognized as text node (Issue #45) FIXED: Some DeadLock Issue in method (Issue #59) FIXED: WindowsCodePage has been modified for CodePage (Issue #60) FIXED: Null content type with .NET Standard
FIXED: OL and LI nesting (Issue #46, Pull #47) ADDED: Overload method with Uri for Issue #38
FIXED: OL and LI nesting (Issue #46, Pull #47) ADDED: Overload method with Uri for Issue #38
Thank you @MartinDemberger for your contribution with the Pull #47
FIXED: HtmlWeb.Load + Caching option for .NET Standard (Issue #15)
FIXED: HtmlWeb.Load + Caching option for .NET Standard (Issue #15)
ADDED: CancellationToken for LoadFromWebAsync method (Issue #25)
ADDED: CancellationToken for LoadFromWebAsync method (Issue #25)
FIXED: CreateNode now return correctly "/r/n" node FIXED: Attribute value DeEntitize (Issue #32) cause by the fix (#19). A new property has been added
FIXED: CreateNode now return correctly "/r/n" node FIXED: Attribute value DeEntitize (Issue #32) cause by the fix (#19). A new property has been added instead DeEntitizeValue to allow to retrieve easily the value instead.
FIXED: CreateNode issue when text starts with a new line (Issue #28)
FIXED: CreateNode issue when text starts with a new line (Issue #28)
FIXED: KeyNotFoundException with DeEntitize (Issue #27) FIXED: Attribute.Value do not longer use DeEntitize (Issue #19) REMOVED: System.Windows.Forms
FIXED: KeyNotFoundException with DeEntitize (Issue #27) FIXED: Attribute.Value do not longer use DeEntitize (Issue #19) REMOVED: System.Windows.Forms from reference (Reflection are now used instead)
Thank you @Bor1ss for your contribution (Pull #29 )
ADDED: LoadFromBrowser (Issue #6) ADDED: HtmlDocument.OptionEmptyCollection (Issue #23) FIXED: HtmlAttribute.Value now use DeEntitize (Issue #19)
ADDED: LoadFromBrowser (Issue #6) ADDED: HtmlDocument.OptionEmptyCollection (Issue #23) FIXED: HtmlAttribute.Value now use DeEntitize (Issue #19)
FIXED: Issue with assembly name for .NETStandard1.3 (Pull Requests #24)
FIXED: Issue with assembly name for .NETStandard1.3 (Pull Requests #24)
Thank you @lukecolburn for your contribution
FIXED: Issue with dependencies for .NETStandard1.3 (Issue #22)
FIXED: Issue with dependencies for .NETStandard1.3 (Issue #22)
ADDED: Support to .NET Standard 1.3 (Issue #13) ADDED: Node.AddClass (Issue #10) ADDED: Node.RemoveClass (Issue #10) ADDED: Node.ReplaceClass (Issue #
ADDED: Support to .NET Standard 1.3 (Issue #13) ADDED: Node.AddClass (Issue #10) ADDED: Node.RemoveClass (Issue #10) ADDED: Node.ReplaceClass (Issue #10) FIXED: Remove, RemoveAt method was not calling SetChanged (Issue #18) FIXED: Issue with multiple EmptyTag not parsed correctly (Issue #16)
FIXED: UsingCache + web.Load was not loading html in the HtmlDocument returned (Issue #15) FIXED: Issue with Attribute.Remove
FIXED: UsingCache + web.Load was not loading html in the HtmlDocument returned (Issue #15) FIXED: Issue with Attribute.Remove
Thank you @josteink for your contribution
FIXED: Error with attribute preceded by "/" (Issue #16) with Pull Request: https://github.com/zzzprojects/html-agility-pack/pull/17 FIXED: DetectEncod
FIXED: Error with attribute preceded by "/" (Issue #16) with Pull Request: https://github.com/zzzprojects/html-agility-pack/pull/17 FIXED: DetectEncoding method was returning null was an encoding was found.
Thank you @josteink for your contribution
FIXED: CloneNode - QuoteType was not copied (Issue #11) FIXED: CopyFrom - QuoteType was not copied (Issue #11)
FIXED: CloneNode - QuoteType was not copied (Issue #11) FIXED: CopyFrom - QuoteType was not copied (Issue #11)
ADDED: Descendants() method to fix issue from Fizzler (#4) FIXED: CopyFrom "deep" parameter was doing the inverse logic.
ADDED: Descendants() method to fix issue from Fizzler (#4) FIXED: CopyFrom "deep" parameter was doing the inverse logic.
FIXED: When ContentType is null or default, try to load as HTML a first time
FIXED: When ContentType is null or default, try to load as HTML a first time
FIXED: p tag not parsed correctly (Issue #1). A temporary option has been added DisableBehavaiorTagP
FIXED: p tag not parsed correctly (Issue #1). A temporary option has been added DisableBehavaiorTagP
IMPORTANT: This option must be set before the first use of the library
HtmlAgilityPack.HtmlDocument.DisableBehavaiorTagP = true;
FIXED: Special Characters not correctly handled with Entitize (Issue #3)
// Was throwing a System.Collections.Generic.KeyNotFoundException before
var r = HtmlEntity.Entitize("\u009d");
ADDED: Support to .NET Standard 1.6
ADDED: Support to .NET Standard 1.6
ALL CREDITS for .NET Core support go to mysticmind and the branch he supported. Thank you!
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.