Sample code for 30+ languages & platforms
PowerShell

StringBuilder EntityDecode

Demonstrates the Chilkat StringBuilder EntityDecode method to decode HTML entities.

Chilkat PowerShell Downloads

PowerShell
Add-Type -Path "C:\chilkat\ChilkatDotNet47-x64\ChilkatDotNet47.dll"

# Decode the following HTML entities, replacing each with the character represented.
$s = "é é é Latin small letter e with acute"

$sb = New-Object Chilkat.StringBuilder

$sb.Append($s)
$sb.EntityDecode()

# Output: é é é Latin small letter e with acute
$($sb.GetAsString())