You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cyclonedx-gomod output SBOM with HTML escaped when --json flag was specified.
This converts & in purl to \u0026 which sometimes is not parsed correctly in other tools.
Hi, I’d love to pick this issue and work on it.
My proposed solution is to add a CLI flag or option to disable HTML escaping in the JSON output. This would allow users to handle special characters like & properly in other tools.
Let me know if that sounds good, and I can start working on a PR!
cyclonedx-gomod output SBOM with HTML escaped when --json flag was specified.
This converts
&
in purl to\u0026
which sometimes is not parsed correctly in other tools.We can find an example at
cyclonedx-gomod/examples/app_minikube-v1.23.1.bom.json
Line 53 in e54760d
Proposal:
or
Because the BOMEncoder in cyclonedx-go already has the method
SetEscapeHTML(escapeHTML bool)
, changes should be necessary only around here.cyclonedx-gomod/internal/cli/util/util.go
Lines 98 to 99 in e54760d
The text was updated successfully, but these errors were encountered: