Just like wfMessage('foo')->rawParams($x)->escaped() works, we also need this in javascript.
For example when wanting to replace $1 with a hyperlink, we currently have to do something like this:
mw.message( msgkey ) .escaped() .replace( /\$1/, mw.html.element( 'a', { id: 'foo' }, mw.msg( 'bar' ) ) );
Which should become:
mw.message( msgkey ) .rawParams( mw.html.element( 'a', { id: 'foo' }, mw.msg( 'bar' ) ) ); .escaped();
Version: 1.17.x
Severity: enhancement