# sitecsspreview, sitejsonpreview, sitejspreview
if ( $level && $format ) {
$note = "<div id='mw-{$level}{$format}preview'>" .
- $this->context->msg( "{$level}{$format}preview" )->text() .
+ $this->context->msg( "{$level}{$format}preview" )->plain() .
' ' . $continueEditing . "</div>";
}
}
$this->contentFormat,
$ex->getMessage()
);
- $note .= "\n\n" . $m->parse();
+ $note .= "\n\n" . $m->plain(); # gets parsed down below
$previewHTML = '';
}
if ( !isset( $params['labelAttribs'] ) ) {
$params['labelAttribs'] = [];
}
- $labelText = $params['rawtext'] ?? $this->parse( wfMessage( $params['label'] )->text() );
+ $labelText = $params['rawtext'] ?? $this->parse( wfMessage( $params['label'] )->plain() );
return "<div class=\"config-input-check\">\n" .
$params['help'] .
foreach ( $entryPoints as $message => $value ) {
$url = wfExpandUrl( $value, PROTO_RELATIVE );
$out .= Html::openElement( 'tr' ) .
- // ->text() looks like it should be ->parse(), but this function
+ // ->plain() looks like it should be ->parse(), but this function
// returns wikitext, not HTML, boo
- Html::rawElement( 'td', [], $this->msg( $message )->text() ) .
+ Html::rawElement( 'td', [], $this->msg( $message )->plain() ) .
Html::rawElement( 'td', [], Html::rawElement( 'code', [], "[$url $value]" ) ) .
Html::closeElement( 'tr' );
}