node-xml icon indicating copy to clipboard operation
node-xml copied to clipboard

Xml escaped characters trigger a new text event.

Open wampleek opened this issue 14 years ago • 0 comments

If the parser sees the text "<p>This is some html text.</p>" (properly escaped), it will call the text handler 7 times: < p > This is some html text. < /p > I believe this choice was made b/c unescaping the characters changes the text length, and it's easier just to send the callback event and move on rather than deal with the changes in indices. However, it would be a significant improvement to pass a single block of text to the onCharacters event.

wampleek avatar Jul 01 '11 14:07 wampleek