]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
elgg_make_excerpt() uses elgg_strip_tags().
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Fri, 16 Jul 2010 10:16:13 +0000 (10:16 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Fri, 16 Jul 2010 10:16:13 +0000 (10:16 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@6724 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/output.php

index 461f3405776ed6af0a6f6613c032baeeef42ea4c..06fa44ead4a52f879907e762bd6be47226f41667 100644 (file)
@@ -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.