REPOSITORY / ScuroNeko/SNekLog
Releases
-
released this
2026-04-28 14:36:03 +03:00 | 0 commits to main since this releaseThis release adds JSON HTML-escaping control while preserving the existing
JSON writer defaults and newline semantics.Added
- Added
Formatter.SetJSONEscapeHTML(bool)andFormatter.JSONEscapeHTMLto control whether JSON writers escape HTML-sensitive characters such as<,>, and&.
Changed
- JSON writers now use
json.Encoderinternally so formatter-level HTML escaping can be configured.
Fixed
- Preserved
PrintandPrintlnnewline behavior for JSON output while switching tojson.Encoder.
Compatibility
- No breaking API changes.
- HTML escaping remains enabled by default, matching the previous
encoding/jsonbehavior. Printstill emits JSON without an added newline, andPrintlnemits exactly one trailing newline.
Full Changelog: v2.2.0...v2.3.0
Downloads
- Added