Merge the str_replacements

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/13804/head
Joas Schilling 2019-01-24 20:35:55 +07:00 committed by Backportbot
parent 63a1ef9154
commit 87b7dd0af2
1 changed files with 1 additions and 1 deletions

@ -204,7 +204,7 @@ class Provider implements IProvider {
try {
$comment = $this->commentsManager->get((string) $commentId);
$message = $comment->getMessage();
$message = str_replace("\n", '<br />', str_replace(['<', '>'], ['&lt;', '&gt;'], $message));
$message = str_replace(['<', '>', "\n"], ['&lt;', '&gt;', '<br />'], $message);
$mentionCount = 1;
$mentions = [];