Warning: This plugin has't been updated in over 55 years. It may no longer be maintained.
What you can do to help:
This plugin is intended as a tool for developers to use as a dependency. Note that it inherently does nothing by itself.
Sometimes you need to retain styling and markup in an excerpt, and elgg_get_excerpt doesn't cut it
This small plugin provides a global function providing a full HTML excerpt
Usage:
$params = array(
'html' => $input_html,
'length' => 250,
'type' => 'chars', // also 'words'
'elipses' => '...'
);
$excerpt = html_excerpt($params);
The resulting excerpt with trim textual elements to the resulting length and return valid rebuilt html.
**Note: the excerpt generation is comparably slow process. Ideally excerpts should be cached after being generated and not generated on the fly repeatedly for multiple views on a page.
View Arck Interactive's plugins
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.