From: Friendika Date: Mon, 21 Feb 2011 08:20:55 +0000 (-0800) Subject: convert html entities on conversational emails X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0a7b3c111e0b137b91a050538e16ccbb5f82f859;p=friendica.git convert html entities on conversational emails --- diff --git a/mod/dfrn_notify.php b/mod/dfrn_notify.php index 9272a7c133..cd7b0cff01 100644 --- a/mod/dfrn_notify.php +++ b/mod/dfrn_notify.php @@ -384,7 +384,7 @@ function dfrn_notify_post(&$a) { '$email' => $importer['email'], '$display' => $a->get_baseurl() . '/display/' . $importer['nickname'] . '/' . $posted_id, '$from' => $from, - '$body' => strip_tags(bbcode(stripslashes($datarray['body']))) + '$body' => html_entity_decode(strip_tags(bbcode(stripslashes($datarray['body']))), ENT_QUOTES, 'UTF-8') )); $res = mail($importer['email'], $from . t(' commented on an item at ') . $a->config['sitename'], @@ -450,7 +450,7 @@ function dfrn_notify_post(&$a) { '$email' => $importer['email'], '$from' => $from, '$display' => $a->get_baseurl() . '/display/' . $importer['nickname'] . '/' . $r, - '$body' => strip_tags(bbcode(stripslashes($datarray['body']))) + '$body' => html_entity_decode(strip_tags(bbcode(stripslashes($datarray['body']))), ENT_QUOTES, 'UTF-8') )); $res = mail($importer['email'], $from . t(" commented on an item at ")