You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
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.
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 allowinghtml_fragment
to take a block.If that sounds like a reasonable feature request, I could take a stab at implementing it.
Thanks!
The text was updated successfully, but these errors were encountered: