We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What's the issue?
In Appendix: Leveraging Dev Tools > Encoding and Decoding:
Suggesting use of escape() and unescape() JavaScript functions for HTML encoding/decoding, while:
escape()
unescape()
> escape("<script>") '%3Cscript%3E'
Suggesting use of encodeURIComponent() and decodeURIComponent for URL encoding/decoding, while:
encodeURIComponent()
decodeURIComponent
> encodeURIComponent("https://www.example.com/?key=valuew/slash") 'https%3A%2F%2Fwww.example.com%2F%3Fkey%3Dvaluew%2Fslash'
How do we solve it?
encodeURI()
The text was updated successfully, but these errors were encountered:
Thanks @ukusormus, feel up for tackling the change(s)?
How do we solve it? Remove current form of HTML encoding/decoding. Maybe look for a better JavaScript solution or omit it entirely?
Let's omit it.
Rename the usage of URL encode/decode to reflect that they're meant for URL parameter values, and/or add encodeURI() also. See more: When are you supposed to use escape instead of encodeURI / encodeURIComponent? - an answer on Stack Overflow
Clarify what it's meant for, and add encodeURI().
Sorry, something went wrong.
Update 6-Appendix: Leveraging Dev Tools - Encoding and Decoding(OWAS…
613c8e5
…P#1070)
e71ec3d
e75f1f4
Successfully merging a pull request may close this issue.
What's the issue?
In Appendix: Leveraging Dev Tools > Encoding and Decoding:
Suggesting use of
escape()
andunescape()
JavaScript functions for HTML encoding/decoding, while:Source: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/escape
Suggesting use of
encodeURIComponent()
anddecodeURIComponent
for URL encoding/decoding, while:How do we solve it?
encodeURI()
also. See more: When are you supposed to use escape instead of encodeURI / encodeURIComponent? - an answer on Stack OverflowThe text was updated successfully, but these errors were encountered: