Select-HtmlInnerText
August 3, 2026 ยท View on GitHub
SYNOPSIS
Returns inner text from AngleSharp or HtmlAgilityPack elements and documents.
SYNTAX
__AllParameterSets
Select-HtmlInnerText [-InputObject] <Object> [-DeEntitize] [-NoTrim] [-DefaultValue <string>] [<CommonParameters>]
DESCRIPTION
Returns inner text from AngleSharp or HtmlAgilityPack elements and documents.
EXAMPLES
EXAMPLE 1
ConvertFrom-Html -Content $html | Select-HtmlNode -XPath '//p' | Select-HtmlInnerText -DeEntitize
PARAMETERS
-DeEntitize
Decodes HTML entities in the returned text.
Type: SwitchParameter
Parameter Sets: __AllParameterSets
Aliases: DecodeEntities
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-DefaultValue
Value returned when the extracted text is empty.
Type: String
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-InputObject
AngleSharp or HtmlAgilityPack element, document, attribute, or raw string content.
Type: Object
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
-NoTrim
Preserves leading and trailing whitespace.
Type: SwitchParameter
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
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.Object
OUTPUTS
System.String
RELATED LINKS
- None