Skip to content

Commit

Permalink
Update 6-Appendix: Leveraging Dev Tools - Encoding and Decoding(OWAS…
Browse files Browse the repository at this point in the history
  • Loading branch information
Gincy authored and Gincy committed Jul 18, 2023
1 parent 125b8a8 commit 613c8e5
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions document/6-Appendix/F-Leveraging_Dev_Tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 613c8e5

Please sign in to comment.