Login   Register  
PHP Classes
elePHPant
Icontem

Cut HTML string

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author  
Picture of prajwala
Name: prajwala <e-mail contact>
Packages: 1 Browse all classes by prajwala Browse all classes by
Country: India India - PHP jobs in India
Age: ???
All time rank: 1770100 in India India
Week rank: 1491 Up107 in India India Down
Innovation award
Innovation award
Nominee: 1x

Winner: 1x


  Detailed description   Download .zip .tar.gz  
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.

  Classes of prajwala  >  Cut HTML string  >  Download .zip .tar.gz  >  Support forum Support forum (1)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Cut HTML string
Base name: cut-html-string
Description: Cut an HTML excerpt with a given text limit
Version: 1.1
PHP version: 5.0
License: GNU General Public License (GPL)
All time users: 1235 users
All time rank: 2702
Week users: 1 user
Week rank: 2151 Up
 
  Groups   Rate classes User ratings   Applications   Related links   Files Files  

  Groups  
Group folder image HTML HTML generation and processing View top rated classes
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Text processing Manipulating and validating text data View top rated classes


  Innovation Award  
PHP Programming Innovation award winner
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

  User ratings  
Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Sufficient (75.0%)
Sufficient (75.0%)
-
-
-
-
Not sure (45.0%)
1835
Month:
Not yet rated by the users

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.

  Related links  
Link Description
Documentation Documentation

  Files folder image Files  
File Role Description
Plain text file cut-html-string Class Cut html string without cutting html tags

Download all files: cut-html-string.tar.gz cut-html-string.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.