summaryrefslogtreecommitdiff
path: root/api/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'api/index.php')
-rw-r--r--api/index.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/api/index.php b/api/index.php
index d6389a741..d3b5ff4fe 100644
--- a/api/index.php
+++ b/api/index.php
@@ -231,7 +231,10 @@
"feed_id" => $line["feed_id"],
);
- if ($show_except) $headline_row["excerpt"] = $line["content_preview"];
+ if ($show_except) {
+ $excerpt = truncate_string(strip_tags($line["content_preview"]), 100);
+ $headline_row["excerpt"] = $excerpt;
+ }
array_push($headlines, $headline_row);
}