{"id":4493,"date":"2023-11-30T11:15:28","date_gmt":"2023-11-30T11:15:28","guid":{"rendered":"https:\/\/ibex.tech\/python\/?p=4493"},"modified":"2023-11-30T11:15:58","modified_gmt":"2023-11-30T11:15:58","slug":"sanitising-encoding-strings","status":"publish","type":"post","link":"https:\/\/ibex.tech\/python\/strings-python\/sanitising-encoding-strings","title":{"rendered":"Sanitising &amp; encoding strings"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">URL Encode and Decode<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>import urllib.parse\n\n    $url_string = urllib.parse.quote($original_string );\n    $original_string = urllib.parse.unquote($url_string );\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>URL Encode and Decode<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[319],"tags":[],"class_list":["post-4493","post","type-post","status-publish","format-standard","hentry","category-strings-python"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts\/4493","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/comments?post=4493"}],"version-history":[{"count":2,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts\/4493\/revisions"}],"predecessor-version":[{"id":4495,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts\/4493\/revisions\/4495"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/media?parent=4493"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/categories?post=4493"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/tags?post=4493"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}