|
elif prop.split('-')[0].lower() in ['background', 'border', 'margin', |
That elif section essentially means that those four style properties get allowed regardless of allowed_css_properties value.
For example, this text:
<p style="color: red; float: left; padding: 1em;">blah</p>
with this allowed_css_properties:
gives this:
<p style="color: red; padding: 1em;">blah</p>