Private/ConvertTo-InfraPulseHtmlEncoded.ps1

function ConvertTo-InfraPulseHtmlEncoded {
    [CmdletBinding()]
    param(
        [AllowNull()]
        [object]$Value
    )

    if ($null -eq $Value) {
        return ''
    }

    return [System.Net.WebUtility]::HtmlEncode([string]$Value)
}