mirror of
https://github.com/tiennm99/loldle.git
synced 2026-10-13 22:16:12 +00:00
fix: disable HTML escaping in JSON output for & characters
This commit is contained in:
1 parent
23be5513e4
commit
a12b5d2b5d
2 files changed
+3
-2
No files matched your search
+2
-2
@@ -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",
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
Reference in new issue
Block a user