[FEATURE] Keep tags when stripping empty tags in HtmlParser
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Documentation / Changelog / master / Feature-72045-KeepTagsInHtmlParserWhenStrippingEmptyTags.rst
1 ====================================================
2 Feature: #72045 - HTMLparser.stripEmptyTags.keepTags
3 ====================================================
4
5 Description
6 ===========
7
8 A new option for the HTMLparser.stripEmptyTags configuration is added.
9 It allows keeping configured tags. Before this change only a list of tags
10 could be provided that should be removed.
11
12 The following example will strip all empty tags **except** ``tr`` and ``td`` tags.
13
14 ::
15
16 HTMLparser.stripEmptyTags = 1
17 HTMLparser.stripEmptyTags.keepTags = tr,td
18
19
20 **Important!** If this setting is used the stripEmptyTags.tags configuration will
21 have no effect any more. You can only use one option at a time.
22
23
24 Impact
25 ======
26
27 Unless the configuration of the HTMLparser is changed, the stripEmptyTags
28 feature will work as before.