< Back

ConvertFrom-Html

Sat Jan 18, 2020 8:58 pm

NAME ConvertFrom-Html



SYNOPSIS

Takes an HTML input and converts it to an HTMLAgilityPack htmlNode object that can be navigated using Linq





SYNTAX

ConvertFrom-Html [-Content] <String[]> [-Raw] [<CommonParameters>]



ConvertFrom-Html -URI <Uri[]> [-Raw] [<CommonParameters>]



ConvertFrom-Html -Path <FileInfo[]> [-Raw] [<CommonParameters>]





DESCRIPTION

Long description





PARAMETERS

-Content <String[]>

The HTML text to parse. Accepts multiple separate documents as an array. This also accepts pipeline from

Invoke-WebRequest



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-URI <Uri[]>

The URI or URIs from which to retrieve content. This may be faster than using Invoke-WebRequest but is less

flexible in the method of retrieval (for instance, no POST)



Required? true

Position? named

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-Path <FileInfo[]>

Path to file or files containing HTML content to convert. This accepts pipeline from Get-Childitem or Get-Item



Required? true

Position? named

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-Raw [<SwitchParameter>]

Do not return the Linq documentnode, instead return the HTMLDocument object. This is useful if you want to do

XPath queries instead of Linq queries



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

[String[]]

[System.IO.FileInfo[]]





OUTPUTS

[HtmlAgilityPack.HtmlDocument]

[HtmlAgilityPack.HtmlNode]





NOTES





General notes



-------------------------- EXAMPLE 1 --------------------------



PS C:\\><example usage>



Explanation of what the example does











RELATED LINKS