Block reason messages escape HTML

The block reason in the block message has escaped HTML. This
HTML should be rendered to the user.

Bug: T190901
Change-Id: Icda7c5d0c76aff7c22f3a6735d880a5ee49338ff
This commit is contained in:
David Barratt 2018-03-28 01:02:47 -04:00
parent 6cfa2c9380
commit 6bea4324c6
No known key found for this signature in database
GPG key ID: 8C55B2BF3C1AD78F

View file

@ -298,7 +298,8 @@
popup.show(
mw.msg(
'mobile-frontend-editor-blocked-info-loggedin',
blockInfo.blockReason,
// Strip any html in the blockReason.
$( '<div />' ).html( blockInfo.blockReason ).text(),
blockInfo.blockedBy
),
{