continue;
}
$name = $matches[1];
+ $lowerName = strtolower( $name );
$attrStart = $i + strlen( $name ) + 1;
// Find end of tag
}
// Handle ignored tags
- if ( in_array( $name, $ignoredTags ) ) {
+ if ( in_array( $lowerName, $ignoredTags ) ) {
$accum .= '<ignore>' . htmlspecialchars( substr( $text, $i, $tagEndPos - $i + 1 ) ) . '</ignore>';
$i = $tagEndPos + 1;
continue;
}
}
// <includeonly> and <noinclude> just become <ignore> tags
- if ( in_array( $name, $ignoredElements ) ) {
+ if ( in_array( $lowerName, $ignoredElements ) ) {
$accum .= '<ignore>' . htmlspecialchars( substr( $text, $tagStartPos, $i - $tagStartPos ) )
. '</ignore>';
continue;
continue;
}
$name = $matches[1];
+ $lowerName = strtolower( $name );
$attrStart = $i + strlen( $name ) + 1;
// Find end of tag
}
// Handle ignored tags
- if ( in_array( $name, $ignoredTags ) ) {
+ if ( in_array( $lowerName, $ignoredTags ) ) {
$accum->addNodeWithText( 'ignore', substr( $text, $i, $tagEndPos - $i + 1 ) );
$i = $tagEndPos + 1;
continue;
}
}
// <includeonly> and <noinclude> just become <ignore> tags
- if ( in_array( $name, $ignoredElements ) ) {
+ if ( in_array( $lowerName, $ignoredElements ) ) {
$accum->addNodeWithText( 'ignore', substr( $text, $tagStartPos, $i - $tagStartPos ) );
continue;
}