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

Xml escaped characters trigger a new text event. #19

Open
wampleek opened this issue Jul 1, 2011 · 0 comments
Open

Xml escaped characters trigger a new text event. #19

wampleek opened this issue Jul 1, 2011 · 0 comments

Comments

@wampleek
Copy link

wampleek commented Jul 1, 2011

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.

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

No branches or pull requests

1 participant