Feature #72045

Keep tags feature for HTMLparser stripEmptyTags

Added by Alexander Stehlik over 4 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Could have
Category:
Frontend
Target version:
-
Start date:
2015-12-03
Due date:
% Done:

100%

PHP Version:
Tags:
Complexity:
medium
Sprint Focus:

Description

Currently the HTMLparser.stripEmptyTags only allows the configuration of a list of tags that should be removed.

It would be a nice addition if the list of provided tags is used to define the tags that should NOT be removed (e.g. table cells).

A possible configuration could look like this:

stripEmptyTags = 1
stripEmptyTags.tags = tr,td
stripEmptyTags.keepTags = 1

Associated revisions

Revision 683625fc (diff)
Added by Alexander Stehlik over 4 years ago

[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 <>
Tested-by: Frank Nägler <>
Reviewed-by: Benni Mack <>
Tested-by: Benni Mack <>

History

#1 Updated by Gerrit Code Review over 4 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/45107

#2 Updated by Gerrit Code Review over 4 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/45107

#3 Updated by Gerrit Code Review over 4 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/45107

#4 Updated by Gerrit Code Review over 4 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/45107

#5 Updated by Alexander Stehlik over 4 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#6 Updated by Benni Mack over 1 year ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF