📄
Dasel
v1
v1
  • Introduction
  • Installation
    • Update
  • Use as a go package
  • Github
  • Playground
  • Usage
    • Select
    • Put
    • Put object
    • Put document
    • Delete
    • Validate
    • Flags
      • Escape HTML
      • Format
      • Multiple
      • Null
      • Merge Input Documents
    • Supported file types
  • Selectors
    • Introduction
    • Property
    • Keys and indexes
    • Index
    • Next Available Index
    • All indexes
    • Dynamic
    • Search
    • Search Optional
    • Length
    • Type
  • Notes
    • File formatting and ordering
    • Memory usage
    • Converting between formats
  • Examples
    • JQ to Dasel
    • YQ to Dasel
    • XML
    • Filter JSON API results
Powered by GitBook
On this page
  • Description
  • Usage
  • Example
  • True
  • False
Edit on GitHub
  1. Usage
  2. Flags

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

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

False

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

Last updated 2 years ago