Extract the text out of a HTML string
Utils\ConvertFrom-HtmlToText.ps1
ConvertFrom-HtmlToText [-HTML] <Object>
Converts a string of HTML to an array of strings where each HTML elements text is one item, using InternetExplorer COM object
#using alias
PS\> '\<li\>test1\</li\>\<li\>test2\</li\>' | html2Text
#output:
test1
test2
The HTML fragment (The function automatically wraps it into well-formed HTML)
Type: Object
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False