/**
  * Main function for prepare the useful email content
  *
  * @param $content string
  * @return string
  */
 public function recognizeUsefulContent($content = null)
 {
     if (!$content) {
         $content = $this->getContent();
     }
     if ($this->isHtml($content)) {
         $content = $this->HTMLPurifier->purify($content);
         $content = $this->removeReplies($content);
     } else {
         $position = strpos($content, self::DELIMITER_LINE);
         if ($position !== false) {
             $content = substr($content, 0, $position);
         }
         $content = $this->markdown->defaultTransform($content);
     }
     return $content;
 }