RunReportSanitizer
Sanitizes names in the RunReports (e.g bodyName, killerBodyName, and gameModeName), alleviating common reasons that the Run Reports fail to load.RunReport Sanitizer
What it does:
Fixes RunReports' parsing crashes caused by spaces or bad characters in XML element names (e.g. 0x20 cannot be included in a name).
Sanitizes values (e.g., bodyName, killerBodyName) that get composed into tag names.
Renames any <fields> child tags that contain spaces.
As a safety net, swallows that specific XmlException so one bad stat doesn’t nuke the whole log.
Why it was made:
So folks with a bunch of modded characters and items don't have to manually go through their runreports removing ones that don't show up. Super tedious to do.
Notes:
Doesn’t rewrite files on disk; fixes happen at load-time.
If a mod keeps emitting invalid names, the plugin prevents crashes but that stat line is skipped.
