Fix parsertest "Don't fall for the self-closing div"
* parserTests.php : removed the 'light' option for --color argument, replacing
it with a new global switch : $wgCommandLineDarkBg
* Sanitizer now correctly escapes lonely '>' occuring before the first wikitag.
+* Ignore self closing on closing tags ( '</div />' now gives '</div>')
== Languages updated ==
}
if ( ! $badtag ) {
$rest = str_replace( '>', '>', $rest );
- $close = ( $brace == '/>' ) ? ' /' : '';
+ $close = ( $brace == '/>' && !$slash ) ? ' /' : '';
$text .= "<$slash$t$newparams$close>$rest";
continue;
}