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.
Supported in JSON write parser since v1.21.0.

Example

True

1
$ echo '{"user": "tom <asd>"}' | dasel -r json --escape-html=true .
2
{
3
"user": "tom \u003casd\u003e"
4
}
Copied!

False

1
$ echo '{"user": "tom <asd>"}' | dasel -r json --escape-html=false .
2
{
3
"user": "tom <asd>"
4
}
Copied!
Last modified 23d ago