Encodes/decodes strings using URI encoding/decoding in the same way that web browsers do. The precise behaviors of these functions can be found at developer.mozilla.org: encodeURI, encodeURIComponent, decodeURI, decodeURIComponent
1 2 3 4 5 6 7
Character vector to be encoded or decoded.
Intended as a faster replacement for
encodeURI differs from encodeURIComponent in that the former will not encode
decodeURI differs from decodeURIComponent in that it will refuse to decode encoded sequences that decode to a reserved character. (If in doubt, use decodeURIComponent.)
encodeURIComponent, input strings will be
converted to UTF-8 before URL-encoding.
Encoded or decoded character vector of the same length as the
decodeURIComponent will return
strings that are UTF-8 encoded.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.