Merge the str_replacements

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/13802/head
Joas Schilling 7 years ago
parent 8e48140c86
commit ec12353f47
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
  1. 2
      apps/comments/lib/Activity/Provider.php

@ -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 = [];

Loading…
Cancel
Save