Hi,
Appreciate the tool!
However, as discovered through the process of investigating this issue, I'm getting "Invalid character in entity name" or " Invalid attribute name" errors with the following numeric character references (hex or dec) representing < or &, where it should not:
const SAX = require('@trysound/sax');
const sax = SAX.parser(true, {
strict: true,
trim: false,
normalize: false,
lowercase: true,
xmlns: true,
position: true,
});
sax.onerror = (e) => {
console.error('Erred', e);
};
sax.write(
// Neither of these work (< and &, respectfully):
// <svg><text class="< and <">< and <</text></svg>
'<svg><text class="& and &">& and &</text></svg>'
).close();