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
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
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
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
2021-02-11 10:58:40 +11:00
2021-02-11 10:58:40 +11:00
2020-12-22 11:47:58 +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: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
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
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
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
2021-02-11 10:58:40 +11:00
2020-12-01 17:58:07 +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-12-25 12:49:05 +11:00
2021-02-11 10:58:40 +11:00
2020-12-01 17:58:07 +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
2020-12-01 15:06: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
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
2021-02-11 10:58:40 +11:00
2020-11-22 13:16:54 +11:00
2021-02-11 10:58:40 +11:00
2020-12-22 10:38:52 +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-12-15 14:33:50 +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