Encode Uri Component
Encode a URI or URI component
Description
Calls the Javascript <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURI" target="_blank">encodeURI</a> or <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent" target="_blank">encodeURIComponent</a> function.
Example
This has a % character
is encoded into This%20has%20a%20%25%20character%20
Inputs
- str (String): The string to be URI encoded.
- entire URL (Boolean): if
true
,encodeURI
is used.
Outputs
- encoded (String): The URI encoded string.
- Error Flow (Error Flow): Triggered by URI malformed input