From 613c8e551099f7d519cb81efbf97514b1ab4c43b Mon Sep 17 00:00:00 2001 From: Gincy Date: Tue, 18 Jul 2023 15:11:24 +0530 Subject: [PATCH] Update 6-Appendix: Leveraging Dev Tools - Encoding and Decoding(#1070) --- document/6-Appendix/F-Leveraging_Dev_Tools.md | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/document/6-Appendix/F-Leveraging_Dev_Tools.md b/document/6-Appendix/F-Leveraging_Dev_Tools.md index 0fda95182b..de29a6c2dd 100644 --- a/document/6-Appendix/F-Leveraging_Dev_Tools.md +++ b/document/6-Appendix/F-Leveraging_Dev_Tools.md @@ -243,13 +243,9 @@ All major browsers support manipulating CSS leveraging the Dev Tools Console and All major browsers support encoding and decoding strings in various ways leveraging the Dev Tools Console and JavaScript functionality: -- Base64 encode: `btoa("string-to-encode")` -- Base64 decode: `atob("string-to-decode")` -- URL encode: `encodeURIComponent("string-to-encode")` -- URL decode: `decodeURIComponent("string-to-decode")` -- HTML encode: `escape("string-to-encode")` -- HTML decode: `unescape("string-to-decode")` - +- Base64 encode: `btoa("string-to-encode")` & Base64 decode: `atob("string-to-decode")` - built-in JavaScript functions that is used to encode a string to Base64 and decode a string from Base64. +- URL encode: `encodeURIComponent("string-to-encode")` & URL decode: `decodeURIComponent("string-to-decode")` - functions encodes and decodes user-supplied input that will be used as a part of a URL and it encodes all characters that have special meanings in a URL, including reserved characters. +- URL encode: `encodeURI()` & URL decode: `decodeURI()` - functions used to encode and decode a complete URI such as query parameters, path segments, or fragments, including special characters, but excluding the reserved characters such as `:/?#[]@!$'()*+,;=` which have special meanings in a URL. ## Responsive Design Mode ### Related Testing