-
Notifications
You must be signed in to change notification settings - Fork 76
Closed
Description
I'm working with Jackson to generate some XML that I'd like to then approve with the verifyXml()
method. Jackson takes care of escaping special characters in the XML but doesn't pretty print it. I'm finding some inconsistencies with how Approvals then formats the XML:
- Single quotes in the DTD are being converted to double quotes. This isn't a major issue but is a difference between what Jackson outputs and how Approvals then formats it.
- Emoji characters, which Jackson doesn't escape, are being escaped by Approvals. For example, "😼" is being output as 😼
- XML special characters, which Jackson has already escaped, are being escaped again. For example, Jackson outputs
&
but Approvals then changes this to&amp
.
Do you have any comments on this? Is it possible to just apply formatting to the XML string that adds line breaks and indents but without further formatting the content?
Metadata
Metadata
Assignees
Labels
No labels