{"id":325,"date":"2012-01-20T15:35:38","date_gmt":"2012-01-20T15:35:38","guid":{"rendered":"http:\/\/corbdesign.com\/blog\/?p=325"},"modified":"2012-01-20T15:35:38","modified_gmt":"2012-01-20T15:35:38","slug":"url-encodedecode","status":"publish","type":"post","link":"https:\/\/corbinrose.com\/blog\/technology\/url-encodedecode\/","title":{"rendered":"URL encode\/decode"},"content":{"rendered":"\n<p>This post is for my coworker who cannot remember how to use encodeURIComponent(). This helpful tool can be used in case you don&#8217;t have all the%20characters%20memorized:<\/p>\n\n\n\n<p>This is useful for dynamically creating Twitter messages, or just generating URL-safe code for non alphanumeric characters. Also, the textarea is pretty. This is also a plus.<\/p>\n\n\n\n<script>function encode() {\n\tvar obj = document.getElementById('dencoder'); var unencoded = obj.value; obj.value = encodeURIComponent(unencoded);\n}\nfunction decode() {\n\tvar obj = document.getElementById('dencoder'); var encoded = obj.value; obj.value = decodeURIComponent(encoded);\n}<\/script>\n<form onsubmit=\"return false;\">\n<h1>URL Decoder\/Encoder<\/h1>\n<p><textarea id=\"dencoder\" style=\"width: 100%;\" rows=\"5\"><\/textarea><\/p>\n<div class=\"doubleButtons\"><input onclick=\"decode()\" type=\"button\" value=\"Decode\"><br><input onclick=\"encode()\" type=\"button\" value=\"Encode\"><\/div>\n<ul>\n<li>Input a string of text and encode or decode it as you like.<\/li>\n<li>Handy for turning encoded JavaScript URLs from complete gibberish into readable gibberish.<\/li>\n<li>If you&#8217;d like to have the URL Decoder\/Encoder for offline use, just view source and save to your hard drive.<\/li>\n<\/ul>\n<\/form>\n","protected":false},"excerpt":{"rendered":"<p>This post is for my coworker who cannot remember how to use encodeURIComponent(). This helpful tool can be used in case you don&#8217;t have all the%20characters%20memorized: This is useful for dynamically creating Twitter messages, or just generating URL-safe code for non alphanumeric characters. Also, the textarea is pretty. This is also a plus. URL Decoder\/Encoder [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":5536,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","_links_to":"","_links_to_target":""},"categories":[28,17],"tags":[],"class_list":["post-325","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-coding","category-technology","clearfix","post-index"],"acf":[],"jetpack_featured_media_url":"https:\/\/corbinrose.com\/blog\/wp-content\/uploads\/2012\/01\/czNmcy1wcml2YXRlL3Jhd3BpeGVsX2ltYWdlcy93ZWJzaXRlX2NvbnRlbnQvbHIvcHgxMTA1NzYtaW1hZ2Uta3d2eTRhdnIta3d2eW54OGQuanBn-2.jpg","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/corbinrose.com\/blog\/wp-json\/wp\/v2\/posts\/325","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/corbinrose.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/corbinrose.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/corbinrose.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/corbinrose.com\/blog\/wp-json\/wp\/v2\/comments?post=325"}],"version-history":[{"count":0,"href":"https:\/\/corbinrose.com\/blog\/wp-json\/wp\/v2\/posts\/325\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/corbinrose.com\/blog\/wp-json\/wp\/v2\/media\/5536"}],"wp:attachment":[{"href":"https:\/\/corbinrose.com\/blog\/wp-json\/wp\/v2\/media?parent=325"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/corbinrose.com\/blog\/wp-json\/wp\/v2\/categories?post=325"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/corbinrose.com\/blog\/wp-json\/wp\/v2\/tags?post=325"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}