Ticket 2271: extra whitespace in underlined link for username in notice lists

Switching to a raw() output for the <span> of the nickname removes the extra whitespace and fixes display.
This commit is contained in:
Brion Vibber 2010-04-02 09:32:03 -07:00
parent f1c01f9ead
commit 6cd0637e55

View File

@ -340,8 +340,9 @@ class NoticeListItem extends Widget
function showNickname()
{
$this->out->element('span', array('class' => 'nickname fn'),
$this->profile->nickname);
$this->out->raw('<span class="nickname fn">' .
htmlspecialchars($this->profile->nickname) .
'</span>');
}
/**