CoreOffice / XMLCoder

Easy XML parsing using Codable protocols in Swift
https://coreoffice.github.io/XMLCoder/
MIT License
795 stars 107 forks source link

Make character escaping customizable in XMLEncoder #188

Closed MaxDesiatov closed 4 years ago

MaxDesiatov commented 4 years ago

Resolve #185. Resolve #187.

Add new charactersEscapedInAttributes and charactersEscapedInElements properties on XMLEncoder that allow customizing how certain characters are escaped.

github-actions[bot] commented 4 years ago
Fails
:no_entry_sign: Error deserializing SwiftLint JSON response (): dataCorrupted(Swift.DecodingError.Context(codingPath: [], debugDescription: "The given data was not valid JSON.", underlyingError: Optional(Error Domain=NSCocoaErrorDomain Code=3840 "The data is not in the correct format.")))

Generated by :no_entry_sign: Danger Swift against 4fef6fb8a4981b39a8fc60b17376777650fd38f4

codecov[bot] commented 4 years ago

Codecov Report

Merging #188 into master will increase coverage by 0.19%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #188      +/-   ##
==========================================
+ Coverage   73.52%   73.71%   +0.19%     
==========================================
  Files          43       43              
  Lines        2342     2359      +17     
==========================================
+ Hits         1722     1739      +17     
  Misses        620      620              
Impacted Files Coverage Δ
Sources/XMLCoder/Auxiliaries/XMLCoderElement.swift 96.34% <100.00%> (-0.02%) :arrow_down:
Sources/XMLCoder/Encoder/XMLEncoder.swift 87.57% <100.00%> (+1.56%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 0d1c1b9...4fef6fb. Read the comment docs.