We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following code emits invalid xml:
import * as XB from 'xmlbuilder2' const b = XB.create() b.ele('doc').ele('test').txt('some & text; foo') const xml = b.end() console.log(xml)
expected:
<?xml version="1.0"?><doc><test>some & text; foo</test></doc>
got
<?xml version="1.0"?><doc><test>some & text; foo</test></doc>
My guess is '& test;' gets recognized as an entity.
Version:
The text was updated successfully, but these errors were encountered:
Fix for issue oozcitak#105
a7ad0d5
Entitities do not contain spaces, changed regex accordingly.
Merge pull request #106 from sladage/issue-105
50411a7
Fix for issue #105
oozcitak
Successfully merging a pull request may close this issue.
The following code emits invalid xml:
expected:
got
My guess is '& test;' gets recognized as an entity.
Version:
The text was updated successfully, but these errors were encountered: