concrete/src/User/PrivateMessage/PrivateMessage.php
public function getFormattedMessageBody()
    {
        $msgBody = $this->getMessageBody();
        $txt = Loader::helper('text');

        $repliedPos = strpos($msgBody, $this->getMessageDelimiter());
        if ($repliedPos > -1) {
            $repliedText = substr($msgBody, $repliedPos);
            $messageText = substr($msgBody, 0, $repliedPos);
            $msgBody = $messageText . '<div class="ccm-profile-message-replied">' . nl2br($txt->entities($repliedText)) . '</div>';
            $msgBody = str_replace($this->getMessageDelimiter(), '<hr />', $msgBody);
        } else {
            $msgBody = nl2br($txt->entities($msgBody));
        }

        return $msgBody;
    }
public function getFormattedMessageBody()
    {
        $msgBody = $this->getMessageBody();
        $txt = Loader::helper('text');

        $repliedPos = strpos($msgBody, $this->getMessageDelimiter());
        if ($repliedPos > -1) {
            $repliedText = substr($msgBody, $repliedPos);
            $messageText = substr($msgBody, 0, $repliedPos);
            $msgBody = $messageText . '<div class="ccm-profile-message-replied">' . nl2br($txt->entities($repliedText)) . '</div>';
            $msgBody = str_replace($this->getMessageDelimiter(), '<hr />', $msgBody);
        } else {
            $msgBody = nl2br($txt->entities($msgBody));
        }

        return $msgBody;
    }
public function getFormattedMessageBody ( ) { $ msgBody = $ this -> getMessageBody ( ) ; $ txt = Loader :: helper ( 'text' ) ; $ repliedPos = strpos ( $ msgBody , $ this -> getMessageDelimiter ( ) ) ; if ( $ repliedPos > - 1 ) { $ repliedText = substr ( $ msgBody , $ repliedPos ) ; $ messageText = substr ( $ msgBody , 0 , $ repliedPos ) ; $ msgBody = $ messageText . '<div class="ccm-profile-message-replied">' . nl2br ( $ txt -> entities ( $ repliedText ) ) . '</div>' ; $ msgBody = str_replace ( $ this -> getMessageDelimiter ( ) , '<hr />' , $ msgBody ) ; } else { $ msgBody = nl2br ( $ txt -> entities ( $ msgBody ) ) ; } return $ msgBody ; }
Responsible for converting line breaks to br tags, perhaps running bbcode, as well as making the older replied-to messages gray.
Responsible for converting line breaks to br tags perhaps running bbcode as well as making the older replied - to messages gray .