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

preseveTags() #164

Open
holsted opened this issue Sep 14, 2015 · 2 comments
Open

preseveTags() #164

holsted opened this issue Sep 14, 2015 · 2 comments

Comments

@holsted
Copy link

holsted commented Sep 14, 2015

Enhancement: It would be handy if there was an method to white list tags you want to keep. Essentially the opposite of stripTags().

@jprichardson
Copy link
Owner

Essentially the opposite of stripTags().

If it were the oppose of stripTags wouldn't it only allow tags and nothing else? I think what you're asking for is some kind of whitelist to pass to stripTags, correct?

@holsted
Copy link
Author

holsted commented Sep 15, 2015

A whitelist to pass to stripTags would work, but seems like it would be confusing to pass it either a list of tags to strip or a whitelist of tags not to strip. Having a separate method whose only purpose is to strip everything except the tags you pass in seemed clearer to me. I'd like to open a pull request in the future, but I don't have time at the moment.

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

2 participants