diff --git a/src/Model/Item.php b/src/Model/Item.php index 923d72c11b..0a3ed1ddc5 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -3354,7 +3354,7 @@ class Item $body = $shared_item['body']; } - $item['body'] = preg_replace("/\[share ([^\[\]]*)\].*\[\/share\]/ism", '[share $1]' . $body . '[/share]', $item['body']); + $item['body'] = preg_replace("/\[share ([^\[\]]*)\].*\[\/share\]/ism", '[share $1]' . str_replace('$', '\$', $body) . '[/share]', $item['body']); unset($shared_item['body']); return array_merge($item, $shared_item);