aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-06-18 16:35:40 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-06-18 16:35:40 -0700
commit1a9c059062eae14a96aac40b2fb4e1efb513dccc (patch)
tree7b142d05b5e52baeec7c538b414cacf6fd14ff4c /include/text.php
parent187a7a56c2f3308521a2f0b407b2518e80a82e70 (diff)
downloadvolse-hubzilla-1a9c059062eae14a96aac40b2fb4e1efb513dccc.tar.gz
volse-hubzilla-1a9c059062eae14a96aac40b2fb4e1efb513dccc.tar.bz2
volse-hubzilla-1a9c059062eae14a96aac40b2fb4e1efb513dccc.zip
issues with markdownify and escaped HTML
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/text.php b/include/text.php
index 9c6fe3622..7101d76da 100644
--- a/include/text.php
+++ b/include/text.php
@@ -1076,9 +1076,9 @@ function list_smilies() {
);
$icons = array(
- '<img class="smiley" src="' . $a->get_baseurl() . '/images/smiley-heart.gif" alt="<3" />',
- '<img class="smiley" src="' . $a->get_baseurl() . '/images/smiley-brokenheart.gif" alt="</3" />',
- '<img class="smiley" src="' . $a->get_baseurl() . '/images/smiley-brokenheart.gif" alt="<\\3" />',
+ '<img class="smiley" src="' . $a->get_baseurl() . '/images/smiley-heart.gif" alt="&lt;3" />',
+ '<img class="smiley" src="' . $a->get_baseurl() . '/images/smiley-brokenheart.gif" alt="&lt;/3" />',
+ '<img class="smiley" src="' . $a->get_baseurl() . '/images/smiley-brokenheart.gif" alt="&lt;\\3" />',
'<img class="smiley" src="' . $a->get_baseurl() . '/images/smiley-smile.gif" alt=":-)" />',
'<img class="smiley" src="' . $a->get_baseurl() . '/images/smiley-wink.gif" alt=";-)" />',
'<img class="smiley" src="' . $a->get_baseurl() . '/images/smiley-frown.gif" alt=":-(" />',
@@ -1187,7 +1187,7 @@ function preg_heart($x) {
$t = '';
for($cnt = 0; $cnt < strlen($x[1]); $cnt ++)
- $t .= '<img class="smiley" src="' . $a->get_baseurl() . '/images/smiley-heart.gif" alt="<3" />';
+ $t .= '<img class="smiley" src="' . $a->get_baseurl() . '/images/smiley-heart.gif" alt="&lt;3" />';
$r = str_replace($x[0],$t,$x[0]);