Created
May 3, 2012 05:41
-
-
Save PProvost/2583571 to your computer and use it in GitHub Desktop.
Powershell convert string to HTML entities
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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