You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 8, 2022. It is now read-only.
The class based approach is a good start. It still needs a hook for custom cleaner functions.
The # remove elements containing only whitespace or linebreaks function must be configurable as well. Because now it also cleans empty <td></td> tags which invalidates tables. And sometimes <p></p> is ok.
You can actually edit the list of allowed tags by changing the value of the class attribute.
For example, if you wish to add some extra tags for a particular instance::
The set of allowed tags and merge tags is hardcoded and cannot be changed.
Ideally, one would like to be able to set those once as default or per cleanse call.
The text was updated successfully, but these errors were encountered: