Skip to content

Instantly share code, notes, and snippets.

View fredriksknese's full-sized avatar

Fredrik Karlsson fredriksknese

View GitHub Profile
@fredriksknese
fredriksknese / Format-PSHtml.ps1
Last active September 6, 2023 15:33
My response to a reddit post
# Response to https://www.reddit.com/r/PowerShell/comments/1692etj/seamless_html_report_creation_harness_the_power/
#Tested with Powershell 7
function Format-AttributesString {
[CmdletBinding()]
[OutputType([string])]
param (
# Value to convert
[Parameter(Mandatory = $true, Position = 0, ValueFromPipeline = $true)]
[object] $InputObjects,