We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e92170b + 33fff95 commit 8b87505Copy full SHA for 8b87505
output/junit_xml_format.go
@@ -2,6 +2,7 @@ package output
2
3
import (
4
"encoding/xml"
5
+ htmlLib "html"
6
"strconv"
7
8
"github.com/GoASTScanner/gas"
@@ -35,7 +36,7 @@ func generatePlaintext(issue *gas.Issue) string {
35
36
return "Results:\n" +
37
"[" + issue.File + ":" + issue.Line + "] - " +
38
issue.What + " (Confidence: " + strconv.Itoa(int(issue.Confidence)) +
- ", Severity: " + strconv.Itoa(int(issue.Severity)) + ")\n" + "> " + issue.Code
39
+ ", Severity: " + strconv.Itoa(int(issue.Severity)) + ")\n" + "> " + htmlLib.EscapeString(issue.Code)
40
}
41
42
func groupDataByRules(data *reportInfo) map[string][]*gas.Issue {
0 commit comments