-
-
Notifications
You must be signed in to change notification settings - Fork 224
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
Feature Request: ignoreSelector Array #159
Comments
@Niek yeah, I'm thinking how to expand the system in this direction. Don't want to rush it and end up with something slow or hard to evolve. As a workaround it might be possible to make a custom formatter to handle the filtering for you. I thought about including something like this along with |
+1 for this feature. Our specific use case is we would like to skip tags of a given class, for example |
I can see this being the most demanded feature. |
Other than PR 186 being outdated, what issues does it have? |
I think I should write a contribution guideline to avoid PRs that are unlikely to be merged. #186:
What exactly makes me unhappy about it:
So it's really not in a state where I could write it down and delegate. A lot of exploratory work. |
Short update: |
I've pushed new code into a separate branch - selectors I'd be grateful if some of you can test this version on real tasks and provide your feedback before release (in a week probably). |
Version 8 is now live. {
selectors: [
{ selector: 'foo.hidden', format: 'skip' }
]
} |
I think this lib is excellent, but I realised an issue with it that I'd like to see as part of the options object:
There are times where you want to transform all of the contents of a Selector, apart from say one or two internal selectors that are only used on the dynamic version of the website (say something like a element that only shows on hover) without moving them out into another element just so they don't get parsed by HtmlToText
I propose the addition of an array of selectors which defaults to empty.
so something like:
which then makes any html elements with those selectors ignored by the parser.
The text was updated successfully, but these errors were encountered: