code = (
    """<tr id="ctl00_Content_AdManagementPreview_DetailView_divNova" class="Extended" style="display: none;">"""
    )
safe_attrs = clean.defs.safe_attrs
cleaner = clean.Cleaner(safe_attrs_only=True, safe_attrs=frozenset())
remove certain attributes from HTML tags