pybluemonday
pybluemonday copied to clipboard
pybluemonday is a library for sanitizing HTML very quickly via bluemonday.
Thank you for this library! Is it possible to add support for inline css? Example taken from: https://github.com/microcosm-cc/bluemonday#inline-css ```python from pybluemonday import UGCPolicy s = UGCPolicy() s.AllowStyles("text-decoration").MatchingEnum("underline", "line-through", "none").OnElements("span") ```...
- Add support for Python 3.5 to support piwheels
Looks interesting https://github.com/travis-ci/gimme
See https://github.com/CTFd/CTFd/issues/1854
* Experiment with the wheel building process
For example the following should work: ``` SANITIZER.AllowElements("blink", "marquee", "form", "input") ``` but will only work if you do each argument one at a time.
We should be able to create tests from other libraries like bleach, html_sanitizer, and the original bluemonday. This shouldn't be too hard. The tests should also auto-run with Github Actions.
It's hard to pass non primitive types between Go and Python so pybluemonday passes an ID between the two. This is probably not thread safe and could lead to memory...
The current pybluemonday approach to interfacing with bluemonday works but probably has edge cases where the reflection or type checking won't work.