String Array and ConvertTo-HTML
- by Taylor Gibb
I cant for the life of me get the contents of a string array (well its not strictly typed but all the items in the array are strings) to become a table, i am trying to use ConvertTo-HTML.
For example:
$arr = @("One", "Two")
$arr | ConvertTo-HTML
I have tried -As List, using fragments, even using InputObject, is it even possible ?
Edit: i simply want to know if there is anyway to use an array as the input for the ConvertTo-HTML cmdlet, all it does is make a table with the length property of the strings.