html-agility-pack: Closing tag is missing within

1. Description

Closing tag is missing within <![CDATA object.

Background: This issue surfaced when parsing HTML <code> blocks. The HTML content is given by Confluence, where the HTML is parsed from.

3. Fiddle or Project

https://dotnetfiddle.net/XmcOB6

Expected Result

<![CDATA[<a href="foo">
bar
</a>]]>

Actual Result

<![CDATA[<a href="foo">
bar
]]>

4. Any further technical details

  • HAP version: 1.11.67
  • NET version 7.0

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 17 (9 by maintainers)

Most upvoted comments

You’re right, wo80, didn’t notice 😄

@JonathanMagnan I think if you change the typo and break upward compatibility, there is only one person (me) who would be affected, but that’s no problem. When I update some time in the future I will just change the wording on the calling site, too.

Hello,

The v1.11.70 is now available with the option renamed as proposed by @wo80 😉

Best Regards,

Jon

@JonathanMagnan Regarding the spelling of OptionThreatCDataBlockAsComment: you probably meant treat and not threat 😉

Works like a charm! Thanks for your support, Jonathan, and keep up the nice work. I really love HtmlAgilityPack and I’ve been using it for many years.

Bye!