ConvertTo-HtmlEntity
August 3, 2026 ยท View on GitHub
SYNOPSIS
Encodes text as HTML entities.
SYNTAX
__AllParameterSets
ConvertTo-HtmlEntity [-Text] <string> [<CommonParameters>]
DESCRIPTION
Encodes text as HTML entities.
EXAMPLES
EXAMPLE 1
ConvertTo-HtmlEntity -Text 'A&B'
PARAMETERS
-Text
Text to encode as HTML entities.
Type: String
Parameter Sets: __AllParameterSets
Aliases: Content, InputObject
Possible values:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue, ByPropertyName)
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
System.String
OUTPUTS
System.String
RELATED LINKS
- None