summaryrefslogtreecommitdiffstats
path: root/apps/comments/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-01-24 20:35:55 +0100
committerJoas Schilling <coding@schilljs.com>2019-01-24 20:35:55 +0100
commitec12353f47dade831d0d2d6a9a826caed4db38a0 (patch)
treeda1356d355a6109535c38ba9c10034ba5d1fd626 /apps/comments/lib
parent8e48140c86810eed889ee361c16c30f6467e756f (diff)
downloadnextcloud-server-ec12353f47dade831d0d2d6a9a826caed4db38a0.tar.gz
nextcloud-server-ec12353f47dade831d0d2d6a9a826caed4db38a0.zip
Merge the str_replacements
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/comments/lib')
-rw-r--r--apps/comments/lib/Activity/Provider.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/comments/lib/Activity/Provider.php b/apps/comments/lib/Activity/Provider.php
index 4940bb6afec..719d4c8bb56 100644
--- a/apps/comments/lib/Activity/Provider.php
+++ b/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 = [];