diff --git a/lib/jabber.php b/lib/jabber.php
index f41d984d62..4a96fb54e6 100644
--- a/lib/jabber.php
+++ b/lib/jabber.php
@@ -176,14 +176,14 @@ function jabber_format_entry($profile, $notice)
$entry .= "\n";
$entry .= "" . $profile->nickname . " - " . common_config('site', 'name') . "\n";
$entry .= "\n";
- $entry .= "\n";
+ $entry .= "\n";
$entry .= "" . $profile->nickname . "\n";
$entry .= "" . $profile->avatarUrl(AVATAR_PROFILE_SIZE) . "\n";
$entry .= "\n";
$entry .= "
" . htmlspecialchars($msg) . "\n";
$entry .= "" . htmlspecialchars($msg) . "\n";
- $entry .= "\n";
- $entry .= "". $notice->uri . "\n";
+ $entry .= "\n";
+ $entry .= "". htmlspecialchars($notice->uri) . "\n";
$entry .= "".common_date_w3dtf($notice->created)."\n";
$entry .= "".common_date_w3dtf($notice->modified)."\n";
$entry .= "\n";