1
0
mirror of https://github.com/taigrr/yq synced 2025-01-18 04:53:17 -08:00
evnp 1be3b31bbc Don't escape HTML chars when converting to json
json.Encoder and json.Marshal implicitly use HTMLEscape to convert
>, <, &, with \u003c, \u003e, \u0026. This behavior carries over
to yq, where chars will be escaped when outputting json but not when
outputting yaml.

This changeset disables this behavior via encoder.SetEscapeHTML(false).
Unfortunately there is no equivalent option for json.Marshal, so its
single usage has been replaced with an encoder (with escaping disabled).
2021-02-11 10:58:40 +11:00
..
2021-02-11 10:58:40 +11:00
wip
2021-02-11 10:58:40 +11:00
2021-02-11 10:58:40 +11:00
2021-02-11 10:58:40 +11:00
2020-11-29 20:25:47 +11:00
2021-02-11 10:58:40 +11:00
2021-02-11 10:58:40 +11:00
2020-12-22 11:47:58 +11:00
2020-11-22 13:16:54 +11:00
2021-02-11 10:58:40 +11:00
2021-02-11 10:58:40 +11:00
2021-02-11 10:58:40 +11:00
2021-02-11 10:58:40 +11:00
2021-02-11 10:58:40 +11:00
2020-11-22 13:50:32 +11:00
2021-02-11 10:58:40 +11:00
2021-02-11 10:58:40 +11:00
2021-02-11 10:58:40 +11:00
2021-02-11 10:58:40 +11:00
2020-11-22 13:16:54 +11:00
2021-02-11 10:58:40 +11:00
2021-02-11 10:58:40 +11:00
2021-02-11 10:58:40 +11:00
2021-02-11 10:58:40 +11:00
wip
2021-02-11 10:58:40 +11:00