Created
October 5, 2017 11:17
-
-
Save alej0varas/d5da50d7ae54cd20990e4ddd6eba4ddb to your computer and use it in GitHub Desktop.
URL decoder
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
<script> | |
function decodeURL() { | |
var uri_enc = document.getElementById("url").value; | |
var uri_dec = decodeURIComponent(uri_enc); | |
var text = document.getElementById("text"); | |
text.textContent = uri_dec; | |
} | |
</script> | |
<input id="url"> | |
<button onclick="decodeURL();">Decode</button> | |
<script> | |
document.getElementById("url").focus(); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment