Add an optional boolean to not escape html during json encoding #890
Labels
carvel accepted
This issue should be considered for future work and that the triage process has been completed
enhancement
This issue is a feature request
priority/unprioritized-backlog
Higher priority than priority/awaiting-more-evidence but not planned. Contributions are welcome.
By default the golang encode does escape problematic HTML characters inside JSON quoted strings. Which may leads to undesired behavior.
A typical example is when you are using the argocd-vault-plugin syntax inside a json string, which looks like this:
Then if I want to create a secret with
Then it compiles to:
Which obviously isn't what we want.
It would be nice if we can call Encode.SetEscapeHTML somehow to prevent that.
The text was updated successfully, but these errors were encountered: