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

Choose scrubber dynamically #7

Open
dwbutler opened this issue Dec 9, 2016 · 2 comments
Open

Choose scrubber dynamically #7

dwbutler opened this issue Dec 9, 2016 · 2 comments

Comments

@dwbutler
Copy link

dwbutler commented Dec 9, 2016

Hi,

My project has a requirement to choose a different scrubber depending on attributes on the model.

Example: certain post authors get less restrictive html scrubbing compared to unprivileged authors.

It would be great if the scrubber could be chosen dynamically, either by passing a lambda to the scrub: option, or allowing html_fragment to take a block.

If that sounds like a reasonable feature request, I could take a stab at implementing it.

Thanks!

@shatle
Copy link

shatle commented Dec 29, 2017

I want it, what about the process?

@flavorjones
Copy link
Owner

Apologies for not responding in such an embarrassingly long time. This seems useful, and if you're willing to craft a PR I'm happy to collaborate with you and review it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants