# URL Query Escape

> Encode a string to be used as a URL parameter.

- ID: `url_param_encode`
- Type: Block
- Category: [Strings](https://inventor.bot/docs/reference/blocks/strings.md)

- Value block: it can be used directly inside expressions, e.g. `"Result: " + url_param_encode(Args{...})`.

**Inputs**

| Name | Required | Description | Value |
| --- | --- | --- | --- |
| `text` | yes | String to encode. | e.g. `"hello world"` |

**Outputs**

| Name | Description | Value |
| --- | --- | --- |
| `encoded_string` | URL encoded string. | e.g. `"hello+world"` |

**Example**

```go
urlParamEncode := url_param_encode(Args{text: "hello world"})
send_text_message(Args{
	channel_id:      trigger.channel_id,
	message_content: "Encoded String: " + urlParamEncode,
})
```