inContentLanguage() // The ->parse() part makes everything safe from an escaping standpoint. return Html::rawElement( 'span', [ 'class' => 'error' ], "Extension:RSS -- Error: " . wfMessage( $errorMessageName ) ->inContentLanguage()->params( $param )->parse() ); } }