fix: disable HTML escaping in JSON output for & characters

This commit is contained in:
tiennm99 committed 2026-04-05 00:29:00 +07:00
1 parent 23be5513e4
commit a12b5d2b5d
2 files changed
+3 -2

No files matched your search

+2 -2
View File
@@ -631,7 +631,7 @@
"w": 48,
"h": 48
},
"gender": "divers",
"gender": "male",
"attackType": "range",
"releaseDate": 2012,
"region": "noxus",
@@ -2069,7 +2069,7 @@
},
{
"id": "Nunu",
"name": "Nunu \u0026 Willump",
"name": "Nunu & Willump",
"title": "the Boy and His Yeti",
"resource": "Mana",
"genre": "Tank,Mage",
+1
View File
@@ -51,6 +51,7 @@ func saveJSON(path string, data []parser.ChampionResult) error {
defer file.Close()
encoder := json.NewEncoder(file)
encoder.SetEscapeHTML(false)
encoder.SetIndent("", " ")
return encoder.Encode(data)
}