// We need to let both '"' and '&' through,
// for strip markers and entities respectively.
$content = str_replace(
- array( '>', '<' ),
- array( '>', '<' ),
+ [ '>', '<' ],
+ [ '>', '<' ],
$content
);
return Html::rawElement( 'pre', $attribs, $content );
* @return array
*/
public static function nowiki( $content, $attributes, $parser ) {
- $content = strtr( $content, array(
+ $content = strtr( $content, [
// lang converter
'-{' => '-{',
'}-' => '}-',
'>' => '>'
// Note: Both '"' and '&' are not converted.
// This allows strip markers and entities through.
- ) );
- return array( $content, 'markerType' => 'nowiki' );
+ ] );
+ return [ $content, 'markerType' => 'nowiki' ];
}
/**