all: add tests to cover HTML escaping via encoding/json
Note how the HTML escaping always happens, even when cmd/cue's --escape
flag or the json.HTMLEscape standard library APIs are not used.
This is the bug that the next CL is going to fix, updating the tests.
For #1243.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: Iff6cf70e2ce7b5a6f9d7cbf14f3edf390b222e6f
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/552319
Unity-Result: CUEcueckoo <cueckoo@cuelang.org>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Roger Peppe <rogpeppe@gmail.com>