Last modified: 2012-03-28 09:48:34 UTC
When creating a Message instance for an inexistant message they return value is always html escaped, it ignores whether plain() or escaped() is used, it always does: http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Message.php?view=markup#l452 > return '<' . key . '>' If not htmlescaped, it should be < and >. This is currently causing issues when using: <code> Html::element( 'h3', array(), wfMessage( 'blabla' )->plain ); </code> which results in double escaped input and weird html characters outputted to the user.
This is how it has always been with wfMsg*. But otoh I don't think anything relies on this behavior yet with wfMessage, so it could be changed.
See https://gerrit.wikimedia.org/r/3842
You might want to add some tests in the line of https://bugzilla.wikimedia.org/attachment.cgi?id=10221&action=diff Shouldn't getMessageText() be improved somehow as well? *** This bug has been marked as a duplicate of bug 14531 ***
ah, forget my remark on getMessageText() :)