serge-community / serge

Continuous localization platform
https://serge.io/
Other
236 stars 52 forks source link

parse_php_xhtml: add an ability to fine-tune the list of tags processed by default #120

Closed iafan closed 5 years ago

iafan commented 5 years ago

Right now, there's a hardcoded list of tags from which content is extracted.

In certain cases it's beneficial to adjust this behavior by adding or removing tags from this list. What we can do is add two optional plugin configuration parameters:

  1. include_tags (ARRAY) — a list of tags which should be considered for content extraction in addition to the predefined list.
  2. exclude_tags (ARRAY) — a list of tags which should be excluded from the list of such tags (this will allow to remove tags from the predefined list as well).