You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 <
The text was updated successfully, but these errors were encountered:
dasel appears to not escape XML special characters like
<
,>
and&
when emiting XML.For example,
echo '{"<": "<", ">": ">", "&": "&"}' | dasel -r json -w xml
emits:which is invalid XML. Even dasel can't parse it again:
The text was updated successfully, but these errors were encountered: