class documentation

class StripClassesAndElements(Transform): (source)

View In Hierarchy

Remove from the document tree all elements with classes in `self.document.settings.strip_elements_with_classes` and all "classes" attribute values in `self.document.settings.strip_classes`.

Method apply Override to apply the transform to the document tree.
Method check_classes Undocumented
Class Variable default_priority Numerical priority of this transform, 0 through 999 (override).
Instance Variable strip_elements Undocumented

Inherited from Transform:

Method __init__ Initial setup for in-place document transforms.
Instance Variable document The document tree to transform.
Instance Variable language Language module local to this document.
Instance Variable startnode Node from which to begin the transform. For many transforms which apply to the document as a whole, `startnode` is not set (i.e. its value is `None`).
def apply(self): (source)

Override to apply the transform to the document tree.

def check_classes(self, node): (source)

Undocumented

default_priority: int = (source)

Numerical priority of this transform, 0 through 999 (override).

strip_elements = (source)

Undocumented