コード例 #1
0
 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);
 }
コード例 #2
0
 public function formatConversationMessageBody($cnv, $cnvMessageBody, $config = array())
 {
     $md = Markdown::defaultTransform(Core::make('helper/text')->entities($cnvMessageBody));
     $formatted = str_replace(array('&lt', '&gt'), array('&lt', '&gt'), $md);
     return parent::formatConversationMessageBody($cnv, $formatted, $config);
 }
コード例 #3
0
 public function formatConversationMessageBody($cnv, $cnvMessageBody, $config = array('htmlawed' => true))
 {
     return parent::formatConversationMessageBody($cnv, $cnvMessageBody, $config);
 }