Link nodes containing CDATA

Topics: Developer Forum
Oct 1, 2013 at 8:34 AM

we're using HtmlAgilityPack for some years now, but only recently we are trying to understand CDATA parsing. I understand that a comment node is created in case a node text is surrounded by <![CDATA[ ... ]]>.

In case a <link> node text contains CDATA, we very much have a problem here as with the default settings, this is actually not allowed. I read to learn this.

Did anyone have this problem before? Can I easily solve this? I am not sure that calling HtmlNode.ElementsFlags.Remove("link"); is such a good idea.