public function formatConversationMessageBody($cnv, $cnvMessageBody, $config = array()) { /** @var \Concrete\Core\Utility\Service\Text $text */ $text = Core::make('helper/text'); $formatted = nl2br($text->entities($cnvMessageBody)); return parent::formatConversationMessageBody($cnv, $formatted, $config); }
public function formatConversationMessageBody($cnv, $cnvMessageBody, $config = array()) { $md = Markdown::defaultTransform(Core::make('helper/text')->entities($cnvMessageBody)); $formatted = str_replace(array('&lt', '&gt'), array('<', '>'), $md); return parent::formatConversationMessageBody($cnv, $formatted, $config); }
public function formatConversationMessageBody($cnv, $cnvMessageBody, $config = array('htmlawed' => true)) { return parent::formatConversationMessageBody($cnv, $cnvMessageBody, $config); }