-
-
Notifications
You must be signed in to change notification settings - Fork 138
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
Scrub not fully applied on HTML::Document #80
Comments
Hi, Thank you for reporting your issue. Can you please provide a working example that demonstrates this problem? In your example, you reference -m |
|
Apologies for the atrociously long delay in responding. I understand what you're reporting, and acknowledge that the comments outside of the |
Fix will be in v2.5.0. Note: in the fix I've chosen to remove any comments from a |
I noticed that some HTML comment tags are not removed.
Here is an example,
my_scrub
should remove all the comments.I check the code and think the problem is here:
https://github.com/flavorjones/loofah/blob/master/lib/loofah/instance_methods.rb#L41
So even a
HTML::Document
would went throughscrubber.traverse(root) if root
. So things outside of HTML will not went through this scrubber.The text was updated successfully, but these errors were encountered: