I wish to remove from html things like
<!--[if gte mso 9]>
...
<![endif]-->
<!--[if gte mso 10]>
...
<![endif]-->
How to do this in C# using HTMLAgilityPack?
I'm using
static void RemoveTag(HtmlNode node, string tag)
{
var nodeCollection = node.SelectNodes("//"+ tag );
if(nodeCollection!=null)
foreach (HtmlNode nodeTag in nodeCollection)
{
nodeTag.Remove();
}
}
for normal tags.