Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serialize strings rather than returning literals during pretty-printing #161

Closed
joewiz opened this issue Apr 19, 2017 · 0 comments
Closed
Assignees
Labels

Comments

@joewiz
Copy link
Member

joewiz commented Apr 19, 2017

As reported by @Torcsi in eXist-db/exist#1420 and demonstrated by @dizzzz, given an element like <a b="&amp;#34;c"/>, eXide returns this as

3.1.x / eXide returns <a b="&#34;c"/>

whereas elsewhere this is returned with the ampersand properly escaped:

3.1.x / query via REST returns <a b="&amp;#34;c"/>
3.1.1 / doc retrieval via REST returns <a b="&amp;#34;c"/>

It appears that in eXide we return the literal string instead of serializing these strings. As a result, the browser is displaying &amp; as &. Applying fn:serialize() to the strings should cause eXist to return &amp;amp;#34;c which the browser will then display as the expected result, &amp;34;c.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant