Index: includes/Sanitizer.php =================================================================== --- includes/Sanitizer.php (revision 14537) +++ includes/Sanitizer.php (working copy) @@ -367,8 +367,8 @@ $tabletags = array(); } - $htmlsingle = array_merge( $tabletags, $htmlsingle ); - $htmlelements = array_merge( $htmlsingle, $htmlpairs ); + $htmlsingleallowed = array_merge( $htmlsingle, $tabletags ); + $htmlelements = array_merge( $htmlsingle, $htmlpairs, $htmlnest ); # Remove HTML comments $text = Sanitizer::removeHTMLcomments( $text ); @@ -391,10 +391,28 @@ if( in_array( $t, $htmlsingleonly ) ) { $badtag = 1; } elseif ( ( $ot = @array_pop( $tagstack ) ) != $t ) { - @array_push( $tagstack, $ot ); - #
  • can be nested in