Skip to content

Use SetEscapeHTML when marshalling JSON everywhere #1253

Open
@mihaitodor

Description

@mihaitodor

Following up on #1244, as discussed on Discord, we want to set SetEscapeHTML when marshalling JSON to avoid certain characters, namely &, < and >, being escaped to \u0026, \u003c and \u003e.

For now, this impacts the following, but I could be missing others:

  • string() - Leverages Gabs here
  • format_json() - Uses the Go json lib directly, but doesn't set this flag
  • this.bytes() triggers it too, but need to dig into it to see why

Workarounds:

Metadata

Metadata

Assignees

No one assigned

    Labels

    annoyingBenthos is mildly annoying but not quite a bugbloblangBloblang featuresv5An issue that's large and fundamental enough to require solving before any hypothetical v5 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions