From eeb2dabfa9975db821353ad937f79cb5ea33a8b9 Mon Sep 17 00:00:00 2001 From: luotianqi777 Date: Tue, 9 Jan 2024 17:36:28 +0800 Subject: [PATCH] feat: remove escape html --- cmd/format/sarif.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/format/sarif.go b/cmd/format/sarif.go index faa0f117..b0f6c31d 100644 --- a/cmd/format/sarif.go +++ b/cmd/format/sarif.go @@ -3,7 +3,6 @@ package format import ( "encoding/json" "fmt" - "html" "io" "regexp" "strings" @@ -170,7 +169,7 @@ func formatDesc(v *detail.VulnInfo) string { } } - return html.EscapeString(strings.Join(lines, "\n")) + return strings.Join(lines, "\n") } func sanitizeString(s string) string {