aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-03-14 13:35:21 +0000
committerMario <mario@mariovavti.com>2024-03-14 13:35:21 +0000
commit6e12b5ec08783e04346c28c8867666bbe7be5817 (patch)
tree0ace4bbb2ac6a875b1b8c0aaea55e2da32cc3272 /include
parent4fb37ef6f393e4eea60c743fb50c9d4a61534b8b (diff)
downloadvolse-hubzilla-6e12b5ec08783e04346c28c8867666bbe7be5817.tar.gz
volse-hubzilla-6e12b5ec08783e04346c28c8867666bbe7be5817.tar.bz2
volse-hubzilla-6e12b5ec08783e04346c28c8867666bbe7be5817.zip
fix shortnames replaced in html tags
Diffstat (limited to 'include')
-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);
}