Description
The remove_empty_tags removes all empty tags. However, there are some cases where it is useful for a tag to remain even if it is empty. Two examples of this:
YouTube video embed, which uses an empty <iframe> tag
Table cells that remain empty but still take up space on a table
Proposed solution
Specify with an allowed_tags or exclude_tags which tags are permitted to remain even if they are empty.
Description The
remove_empty_tags
removes all empty tags. However, there are some cases where it is useful for a tag to remain even if it is empty. Two examples of this:<iframe>
tagProposed solution Specify with an
allowed_tags
orexclude_tags
which tags are permitted to remain even if they are empty.