[FEATURE] Keep tags when stripping empty tags in HtmlParser 07/45107/5
authorAlexander Stehlik <alexander.stehlik@gmail.com>
Sun, 20 Dec 2015 08:31:27 +0000 (09:31 +0100)
committerBenni Mack <benni@typo3.org>
Sat, 23 Jan 2016 11:17:08 +0000 (12:17 +0100)
commit683625fc52c3c8b0fa9dac509ec6555bd1bad73e
tree14bb3206f71c0ca1a0d0c18471d42fc350be0704
parent043ef63464cc94124928c476e19a88bec99e7bcd
[FEATURE] Keep tags when stripping empty tags in HtmlParser

A new option for the HTMLparser.stripEmptyTags configuration
is added:

HTMLparser.stripEmptyTags.keepTags = tr,td

This will make the HTMLparser remove all empty tags except the
configured ones. If this setting is used the .tags configuration
will have no effect any more.

Resolves: #72045
Releases: master
Change-Id: I7137db597e442460aa7add9d99bdf73db0d5cbd5
Reviewed-on: https://review.typo3.org/45107
Reviewed-by: Frank Nägler <frank.naegler@typo3.org>
Tested-by: Frank Nägler <frank.naegler@typo3.org>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/core/Classes/Html/HtmlParser.php
typo3/sysext/core/Documentation/Changelog/master/Feature-72045-KeepTagsInHtmlParserWhenStrippingEmptyTags.rst [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Html/HtmlParserTest.php