# $encodeURIComponent — Encodes a URL part (also encodes `:/?#&=`).

## Syntax

```
$encodeURIComponent[text]
```

## Parameters

- **text** *(text, required)* — The text.

## Return Value

- string.

## Usage

```
$encodeURIComponent[a&b] → "a%26b"
```

## Example

```bdfd
$sendMessage[$encodeURIComponent[a&b]]
```
