{"id":1209,"date":"2023-05-21T07:05:09","date_gmt":"2023-05-21T07:05:09","guid":{"rendered":"https:\/\/itnotes.apjsoftwares.com\/?p=1209"},"modified":"2023-05-21T07:05:09","modified_gmt":"2023-05-21T07:05:09","slug":"what-is-unescape-and-escape-functions","status":"publish","type":"post","link":"https:\/\/itnotes.apjsoftwares.in\/index.php\/2023\/05\/21\/what-is-unescape-and-escape-functions\/","title":{"rendered":"What is unescape() and escape() functions?"},"content":{"rendered":"\n<p>The escape () function is responsible for coding a string to transfer the information from one computer to the other across a network.<\/p>\n\n\n\n<p><strong>For Example:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;script&gt;\ndocument.write(escape(\"Hello? How are you!\"));\n&lt;\/script&gt;<\/pre>\n\n\n\n<p><strong>Output:<\/strong>&nbsp;Hello%3F%20How%20are%20you%21<\/p>\n\n\n\n<p>The unescape() function is very important as it decodes the coded string.<\/p>\n\n\n\n<p>It works in the following way. For example:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;script&gt;\n    document.write(unescape(\"Hello%3F%20How%20are%20you%21\"));\n&lt;\/script&gt;\n<\/pre>\n\n\n\n<p><strong>Output:<\/strong>&nbsp;Hello? How are you!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The escape () function is responsible for coding a string to transfer the information from&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[23],"tags":[],"_links":{"self":[{"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/posts\/1209"}],"collection":[{"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/comments?post=1209"}],"version-history":[{"count":1,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/posts\/1209\/revisions"}],"predecessor-version":[{"id":1210,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/posts\/1209\/revisions\/1210"}],"wp:attachment":[{"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/media?parent=1209"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/categories?post=1209"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/tags?post=1209"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}