aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/text.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/text.php b/include/text.php
index acfef2d62..713911af2 100644
--- a/include/text.php
+++ b/include/text.php
@@ -1432,7 +1432,7 @@ function smilies($s, $sample = false) {
$class .= ' single-emoji';
}
- $img = '<img class="' . $class . '" src="' . $emoji['filepath'] . '" alt="' . $emoji['shortname'] . '" title="' . $emoji['shortname'] . '" />';
+ $img = '<img class="' . $class . '" src="' . $emoji['filepath'] . '" alt="' . trim($emoji['shortname'], ':') . '" title="' . trim($emoji['shortname'], ':') . '" />';
string_replace($emoji['shortname'], $img, $s);
}