aboutsummaryrefslogtreecommitdiff
path: root/mod/search
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-12-03 16:56:39 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-12-03 16:56:39 +0000
commit21e0f44aa5c8af9f2a12a8636ec3af3826f39dfb (patch)
treed6928fcfa59667819936d7da1d32c97d29588b5b /mod/search
parent8f277db1ef5dc21f831c7e05efc4a25c447c1fd8 (diff)
downloadelgg-21e0f44aa5c8af9f2a12a8636ec3af3826f39dfb.tar.gz
elgg-21e0f44aa5c8af9f2a12a8636ec3af3826f39dfb.tar.bz2
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
Diffstat (limited to 'mod/search')
-rw-r--r--mod/search/search_hooks.php4
1 files changed, 2 insertions, 2 deletions
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 {