/**
  * @see EntryMessage::getFormattedMessage()
  */
 public function getFormattedMessage()
 {
     return SearchResultTextParser::parse($this->message->getFormattedMessage());
 }
 /**
  * @see ViewablePM::getFormattedMessage()
  */
 public function getFormattedMessage()
 {
     return SearchResultTextParser::parse(parent::getFormattedMessage());
 }
 /**
  * Gets the items for the current page.
  */
 protected function readItems()
 {
     for ($i = $this->startIndex - 1; $i < $this->endIndex; $i++) {
         // get item name
         $itemName = $this->result[$i];
         // get description
         $description = WCF::getLanguage()->getDynamicVariable('wcf.help.item.' . $itemName . '.description');
         // remove headlines
         $description = preg_replace('~<h4>.*?</h4>~', '', $description);
         // remove help images
         $description = preg_replace('~<p class="helpImage.*?</p>~s', '', $description);
         // add item
         $this->helpItems[] = array('item' => $itemName, 'title' => KeywordHighlighter::doHighlight(WCF::getLanguage()->get('wcf.help.item.' . $itemName)), 'description' => SearchResultTextParser::parse($description));
     }
 }