From 21e0f44aa5c8af9f2a12a8636ec3af3826f39dfb Mon Sep 17 00:00:00 2001 From: brettp Date: Thu, 3 Dec 2009 16:56:39 +0000 Subject: Stripping tags to remove HTML on title and description for comment search. git-svn-id: http://code.elgg.org/elgg/trunk@3722 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/search/search_hooks.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mod/search/search_hooks.php') diff --git a/mod/search/search_hooks.php b/mod/search/search_hooks.php index 89d4f1dbd..e56056701 100644 --- a/mod/search/search_hooks.php +++ b/mod/search/search_hooks.php @@ -188,14 +188,14 @@ function search_tags_hook($hook, $type, $value, $params) { } // Nick told me my idea was dirty, so I'm hard coding the numbers. - $title_tmp = $entity->title; + $title_tmp = strip_tags($entity->title); if (elgg_strlen($title_tmp) > 297) { $title_str = elgg_substr($title_tmp, 0, 297) . '...'; } else { $title_str = $title_tmp; } - $desc_tmp = $entity->description; + $desc_tmp = strip_tags($entity->description); if (elgg_strlen($desc_tmp) > 297) { $desc_str = elgg_substr($desc_tmp, 0, 297) . '...'; } else { -- cgit v1.2.3