Open
Description
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
Proposal:
- DIsable HTML escape globally
or - Add CLI option to disable HTML escaping
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
Activity