The kill_tags attribute of html.Cleaner could be settable in the constructor
Bug #847635 reported by
Wojtek
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxml |
Fix Released
|
Low
|
Unassigned |
Bug Description
Right now it's set internally - I would like to clean up <style> tags but NOT clean up inline styles - this is for sanitizing email on a website. I can also see other uses for it - it would be really simple to make it settable..
Thank you.
To post a comment you must log in.
Wojtek, 12.09.2011 10:11:
> Right now it's set internally - I would like to clean up<style> tags
> but NOT clean up inline styles - this is for sanitizing email on a
> website. I can also see other uses for it - it would be really simple
> to make it settable..
You are free to provide a pull request on github with the proposed changes.
Stefan