diff --git a/ziti-enroller/subcmd/root.go b/ziti-enroller/subcmd/root.go index f69bcde04..f2d460981 100644 --- a/ziti-enroller/subcmd/root.go +++ b/ziti-enroller/subcmd/root.go @@ -134,7 +134,10 @@ func processEnrollment() error { return fmt.Errorf("failed to open file '%s': %s", outpath, err.Error()) } - encErr := json.NewEncoder(output).Encode(&conf) + enc := json.NewEncoder(output) + enc.SetEscapeHTML(false) + encErr := enc.Encode(&conf) + if encErr == nil { fmt.Printf("enrolled successfully. identity file written to: %s", outpath) return nil