Filters provide an easy way of cleaning HTML attributes and nodes during the
parsing cycle. This is especially useful for
Filters can be added to each instance of
<Interweave /> through the
To disable all filters, pass the
Creating a custom filter is easy. Extend the base
Filter class, or use a plain object, and define
node methods. These methods receive the attribute or tag name as the 1st
argument, and the value as the 2nd, respectively.
Attribute values and nodes must be returned from filter methods!
nullfor a node will remove it from the DOM tree.