salsadigitalauorg / merlin-framework

Merlin - migration framework
GNU General Public License v3.0
16 stars 3 forks source link

Allow certain tags to be empty for remove_empty_tags processor #107

Open nickgeorgiou opened 5 years ago

nickgeorgiou commented 5 years ago

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:

Proposed solution Specify with an allowed_tags or exclude_tags which tags are permitted to remain even if they are empty.

-
  processor: remove_empty_tags
  allowed_tags: <iframe><td><th>