Skip to content

Instantly share code, notes, and snippets.

@PProvost
Created May 3, 2012 05:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PProvost/2583571 to your computer and use it in GitHub Desktop.
Save PProvost/2583571 to your computer and use it in GitHub Desktop.
Powershell convert string to HTML entities
$str = "some long assed string you want to convert"
$str.ToCharArray() | % { "&#{0};" -f [Convert]::ToInt32($_) } | Join-String | clip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment