Skip to content

Commit

Permalink
Update 6-Appendix: Leveraging Dev Tools - Encoding and Decoding(#1070)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gincy authored and kingthorin committed Sep 10, 2024
1 parent 9e04ced commit cfe72b6
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions document/6-Appendix/F-Leveraging_Dev_Tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,12 +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 are 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")` - It 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.
- URI encode: `encodeURI()` and URI decode: `decodeURI()` are 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

Expand Down

0 comments on commit cfe72b6

Please sign in to comment.