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

Optimization in HTML Sanitizer #719

Closed
wants to merge 1 commit into from

Conversation

jesperronn
Copy link

Why first push delimiters in only to remove the last.

Instead, by this commit, just join in the end with the desired delimiter.

Why first push delimiters in only to remove the last.

Instead, by this commit, just join in the end with the desired delimiter.
@benweet
Copy link
Owner

benweet commented Feb 27, 2015

Did you test this? I don't think we want to have the div delimiter between every buf entry (buf is an array of chars, one call of htmlParser pushes a lot of things in it).

@jesperronn
Copy link
Author

To be honest, no I did not. I'll have a look at htmlParser. Thanks for direction 👍

@benweet benweet closed this Feb 27, 2015
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

Successfully merging this pull request may close these issues.

None yet

2 participants