Skip to content

text nodes are output under-escaped #160

@bukzor

Description

@bukzor

xq can't parse its own output. Examples:

$ xq <<< '<html>1 &amp; 2</html>'
<html>1 & 2</html>

$ xq <<< '<html>1 &amp; 2</html>' | xq -j
Error: error while parsing XML: XML syntax error on line 1: invalid character entity & (no semicolon)

$ xq <<< '<html>is &lt;bold&gt; a valid tag?</html>'
<html>is <bold> a valid tag?</html>

$ xq <<< '<html>is &lt;bold&gt; a valid tag?</html>' | xq -j
Error: error while parsing XML: XML syntax error on line 1: element <bold> closed by </html>

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions