 |
|
Innovation award
 Nominee: 1x
Winner: 1x |
This class can be used to cut an HTML excerpt with a given text limit.
It takes a string with an HTML excerpt and return the initial text and tags so the text does not exceed a given limit.
 May 2009
Winner
Prize: One downloadable e-book of choice by O'Reilly |
In PHP, it is easy to extract an excerpt of a text string with a given length limit. But if you want to extract an excerpt from HTML, the tags that may exist in the text string make it more complicated.
This class provides a solution to extract excerpts from HTML documents with a given text length limit without counting the length of any HTML tags.
Manuel Lemos |
| Ratings | Utility |
Consistency |
Documentation |
Examples |
Tests |
Videos |
Overall |
Rank |
| All time: |
Sufficient (75.0%) |
Sufficient (75.0%) |
- |
- |
- |
- |
Not sure (45.0%) |
1788 |
| Month: |
Not yet rated by the users |
| |
Applications that use this class |
|
|
No application links were specified for this class.

If you know an application of this package, send a message to the
author to add a link here.
| |
Files |
|
|
| File |
Role |
Description |
cut-html-string |
Class |
Cut html string without cutting html tags |