diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2013-09-27 20:52:20 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2013-09-27 20:52:20 +0200 |
commit | b679b8c0315f96b1aeb3286efd5a36072aeb18cc (patch) | |
tree | 99a09362381941540ef053309a86122be8638be3 /db | |
parent | 15c663658ecf19bdc6257e57825e943735aece0f (diff) |
always open links in new tab
Diffstat (limited to 'db')
-rw-r--r-- | db/item.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/db/item.php b/db/item.php index 5c0472eaf..70d3cbb07 100644 --- a/db/item.php +++ b/db/item.php @@ -176,5 +176,9 @@ class Item extends Entity implements IAPI { } + public function setBody($body) { + parent::setBody(str_replace('<a', '<a target="_blank"', $body)); + } + } |