Allow data attributes through Cleaner
Bug #1888154 reported by
Kevin Chung
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxml |
Confirmed
|
Low
|
Unassigned |
Bug Description
Python : sys.version_
lxml.etree : (4, 5, 2, 0)
libxml used : (2, 9, 10)
libxml compiled : (2, 9, 10)
libxslt used : (1, 1, 34)
libxslt compiled : (1, 1, 34)
Data attributes (https:/
There doesn't seem to be a way to allow all data attributes through the Cleaner without explicitly whitelisting every possibility via safe_attrs.
Is there a possibility to add something like Cleaner(
To post a comment you must log in.
Looking at the lxml cleaner code, I don't think I'd be able to create a custom safe_attrs object either b/c it is explicitly cast to set() before it's used.