/** * Parses html into basic plaintext * * @param string $content */ public function parsePlainText($content = null) { if ($content == null) { $content = $this->message->getBody(); } $request = $this->factory->getRequest(); $parser = new PlainTextHelper(array('base_url' => $request->getSchemeAndHttpHost() . $request->getBasePath())); $this->plainText = $parser->setHtml($content)->getText(); }