/**
  * Get the HTML for a single comment.
  *
  * @since 0.1
  *
  * @param ContestComment $comment
  *
  * @return string
  */
 protected function getCommentHTML(ContestComment $comment)
 {
     $user = User::newFromId($comment->getField('user_id'));
     $htmlId = 'c' . $comment->getId();
     $html = Html::rawElement('div', array('class' => 'contestant-comment-meta'), Html::element('a', array('href' => $this->getTitle($this->subPage)->getLocalURL() . "#{$htmlId}", 'title' => wfMsg('contest-contestant-permalink')), '#') . wfMsgHtml('contest-contestant-comment-by', Linker::userLink($comment->getField('user_id'), $user->getName()) . Linker::userToolLinks($comment->getField('user_id'), $user->getName())) . '   ' . htmlspecialchars($this->getLanguage()->timeanddate($comment->getField('time'), true)));
     $html .= Html::rawElement('div', array('class' => 'contestant-comment-text mw-content-' . $this->getLanguage()->getDir() . ''), $this->getOutput()->parse($comment->getField('text')));
     return Html::rawElement('div', array('class' => 'contestant-comment', 'id' => $htmlId), $html);
 }