Created
January 17, 2016 18:10
-
-
Save JavaScript-Packer/54863d7388638074ade8 to your computer and use it in GitHub Desktop.
HEX encoding from JavaScript escape function/command. www.whak.ca
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
<input type="button" value="Hex Escape" onclick="alert(escape('A test!').replace(/%/g,'\\x'));"> | |
<input type="button" value="Hex unEscape" onclick="alert(unescape('A\\x20test\\x21'.replace(/\\x/g,'%')));"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment