From d71d367fa5747bdedcd617e856343cd1fee2465a Mon Sep 17 00:00:00 2001 From: marcus Date: Mon, 30 Mar 2009 14:49:56 +0000 Subject: Closes #889: Decoding html entities from messages before stripping tags git-svn-id: https://code.elgg.org/elgg/trunk@3180 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/notification.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engine/lib/notification.php') diff --git a/engine/lib/notification.php b/engine/lib/notification.php index abd3fbb55..44d896d18 100644 --- a/engine/lib/notification.php +++ b/engine/lib/notification.php @@ -273,7 +273,8 @@ $subject = mb_encode_mimeheader($subject,"UTF-8", "B"); } - // Format message + // Format message + $message = html_entity_decode($message, ENT_COMPAT, 'UTF-8'); // Decode any html entities $message = strip_tags($message); // Strip tags from message $message = preg_replace("/(\r\n|\r)/", "\n", $message); // Convert to unix line endings in body $message = preg_replace("/^From/", ">From", $message); // Change lines starting with From to >From -- cgit v1.2.3