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
I'm trying to convert XML (from a system I don't control) to JSON. The XML sometimes contains double quotes and other "special" characters in the text content. Dasel version 2.8.1 currently encodes:
" as " where I would like it to be \"
> as > where I would like it to be >
I assume this is html encoding? Is there an argument that controls this that I am missing?
Here is a sample string showing what I'm sending:
echo'<foo>"bar>baz"</foo>'| dasel.exe --read xml --write json
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to convert XML (from a system I don't control) to JSON. The XML sometimes contains double quotes and other "special" characters in the text content.
Dasel
version2.8.1
currently encodes:"
as"
where I would like it to be\"
>
as>
where I would like it to be>
I assume this is html encoding? Is there an argument that controls this that I am missing?
Here is a sample string showing what I'm sending:
It returns:
I need it to return:
I'm running this on Windows if that matters.
Beta Was this translation helpful? Give feedback.
All reactions