> For the complete documentation index, see [llms.txt](https://daseldocs.tomwright.me/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://daseldocs.tomwright.me/v1/usage/flags/escape-html.md).

# Escape HTML

## Description

Tells dasel whether or not to escape HTML tags when writing data.

## Usage

Pass the `--escape-html=true` or `--escape-html=false` flag to any dasel command.

Defaults to `false`.

{% hint style="info" %}
Supported in JSON write parser since v1.21.0.
{% endhint %}

## Example

### True

```shell
$ echo '{"user": "tom <asd>"}' | dasel -r json --escape-html=true .
{
  "user": "tom \u003casd\u003e"
}
```

### False

```shell
$ echo '{"user": "tom <asd>"}' | dasel -r json --escape-html=false .
{
  "user": "tom <asd>"
}
```
