aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-07-16 10:16:13 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-07-16 10:16:13 +0000
commitc09ae77f4c971bab6b2293b6d0b9df9b025569f7 (patch)
treefaa02a057dac78eaeb2a0aa8e91fa9ed6d7fab91
parent7f7c08aec1ddb73542bddae84df331ed8459e131 (diff)
downloadelgg-c09ae77f4c971bab6b2293b6d0b9df9b025569f7.tar.gz
elgg-c09ae77f4c971bab6b2293b6d0b9df9b025569f7.tar.bz2
elgg_make_excerpt() uses elgg_strip_tags().
git-svn-id: http://code.elgg.org/elgg/trunk@6724 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/output.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/output.php b/engine/lib/output.php
index 461f34057..06fa44ead 100644
--- a/engine/lib/output.php
+++ b/engine/lib/output.php
@@ -98,7 +98,7 @@ function autop($pee, $br = 1) {
* @since 1.7.2
*/
function elgg_make_excerpt($text, $num_chars = 250) {
- $text = trim(strip_tags($text));
+ $text = trim(elgg_strip_tags($text));
$string_length = elgg_strlen($text);
if ($string_length <= $num_chars) {
@@ -152,7 +152,7 @@ function friendly_title($title) {
function friendly_time($time) {
return elgg_view('output/friendlytime', array('time' => $time));
}
-
+elgg_make_excerpt($text)
/**
* Strip tags and offer plugins the chance.
* Plugins register for output:strip_tags plugin hook.