$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 );
}
}