$message = $wgMessageCache->get( $key, $useDB, $langCode );
if ( $transform ) {
$message = $wgMessageCache->transform( $message );
+ // Decode two entities used in messages, to allow them "pass" htmlspecialchars
+ $message = str_replace( array( ' ', ' ' ), array( ' ', "\xc2\xa0" ), $message );
}
} else {
$lang = wfGetLangObj( $langCode );
$string = $wgMessageCache->transform( $string,
!$forContent,
is_object( $langCode ) ? $langCode : null );
+ // Decode two entities used in messages, to allow them "pass" htmlspecialchars
+ $string = str_replace( array( ' ', ' ' ), array( ' ', "\xc2\xa0" ), $string );
}
}
wfNumLink( $offset, 250, $title, $query ),
wfNumLink( $offset, 500, $title, $query )
) );
- return wfMsg( 'viewprevnext', $plink, $nlink, $nums );
+ return wfMsgHtml( 'viewprevnext', $plink, $nlink, $nums );
}
/**