Index: t3lib/class.t3lib_parsehtml.php
===================================================================
--- t3lib/class.t3lib_parsehtml.php (revision 9863)
+++ t3lib/class.t3lib_parsehtml.php (working copy)
@@ -875,7 +875,11 @@
// rmTagIfNoAttrib
if ($endTag || trim($tagParts[1]) || !$tags[$tagName]['rmTagIfNoAttrib']) {
- $setTag = !$tags[$tagName]['rmTagIfNoAttrib'];
+ $setTag = 1;
+ // Remove this closing tag if $tagName was among $TSconfig['removeTags']
+ if ($endTag && $tags[$tagName]['allowedAttribs'] === 0 && $tags[$tagName]['rmTagIfNoAttrib'] === 1) {
+ $setTag = 0;
+ }
if ($tags[$tagName]['nesting']) {
if (!is_array($tagRegister[$tagName])) $tagRegister[$tagName]=array();