summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Db/Item.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Db/Item.php b/lib/Db/Item.php
index e88635435..3dedd308d 100644
--- a/lib/Db/Item.php
+++ b/lib/Db/Item.php
@@ -291,7 +291,7 @@ class Item extends Entity implements IAPI, \JsonSerializable
{
// FIXME: this should not happen if the target="_blank" is already
// on the link
- $body = str_replace('<a', '<a target="_blank" rel="noreferrer"', $body);
+ $body = str_replace('<a ', '<a target="_blank" rel="noreferrer" ', $body);
if ($this->body !== $body) {
$this->body = $body;