Encode or decode text
Make text safe for, or read it back from, a web address (URL), HTML, XML, JSON or Base64.
Command in the String toolkit · id ooa.string/encode · 3 inputs (1 required), 1 output
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Text | String | Yes | Text to change. | |
| Direction | String | No | encode | Encode or decode. |
| Format | String | No | url | URL: a value in a web address (a space is %20); HTML and XML: < > & and quotes; JSON: the inside of a JSON text (quotes, \n); Base64: UTF-8 bytes. |
Outputs
| Output | Type | What it is |
|---|---|---|
| result | String | The encoded or decoded text. |