-
-
Notifications
You must be signed in to change notification settings - Fork 157
Open
Labels
bugSomething isn't workingSomething isn't working
Description
dasel appears to not escape XML special characters like <
, >
and &
when emiting XML.
For example, echo '{"<": "<", ">": ">", "&": "&"}' | dasel -r json -w xml
emits:
<doc>
<&>&</&>
<<><</<>
<>>></>>
</doc>
which is invalid XML. Even dasel can't parse it again:
echo '{"<": "<", ">": ">", "&": "&"}' | dasel -r json -w xml | dasel -r xml
Error: could not unmarshal data: xml.Decoder.Token() - XML syntax error on line 2: expected element name after <
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working