Get Children of FORM tags - Powershell

Topics: Developer Forum, User Forum
Jul 24, 2014 at 7:03 PM
I've come across several people reporting how the default setting for HtmlAgilityPack when getting a FORM tag is to not select its children (See this StackOverflow page).

However, all of the fixes for this are for C#. I'm am looking for a solution in PowerShell.

What is the PowerShell equivalent to the C# code
HtmlNode.ElementsFlags.Remove("form");
Jul 25, 2014 at 5:58 PM
I figured it out.

[HtmlAgilityPack.HtmlNode]::ElementsFlags.Remove("form")

is the command I needed to run.