Skip to content

How does one find all elements regardless of ifs? #2994

Discussion options

You must be logged in to vote

Conditional comments aren't really supported in modern browsers -- https://en.wikipedia.org/wiki/Conditional_comment -- so you may simply want to remove all comments.

But it sounds like what you really want is an HTML sanitizer. I suggest you take a look at https://github.com/flavorjones/loofah or https://github.com/rgrove/sanitize

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@flavorjones
Comment options

Answer selected by flavorjones
@flavorjones
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2993 on September 23, 2023 02:15.