Login   Register  
PHP Classes
elePHPant
Icontem

wrappedtext: Word wrap class (that skips html tags)

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2002-09-25 (12 years ago) RSS 2.0 feedStarStar 26%Total: 1,791 All time: 2,038 This week: 1,456Up
Version License Categories  
wrappedtext 1.0GNU General Public Lice...HTML, Text processing
Description Author  

If a site uses narrow tables this is a great tool because words that are longer as the width of a table would enlarge the table and deface the site layout. using php's wordwrap function has the disadvantage that the whole text is wrapped which means that short words might also get cut at a certain position of the line. in addition wordwrap can't be used if the text that needs to be wrapped contains html tags.

Picture of Bas Jobsen
Name: Bas Jobsen <contact>
Classes: 9 packages by
Country: The Netherlands The Netherlands
Age: 38
All time rank: 2346 in The Netherlands The Netherlands
Week rank: 1105 Down30 in The Netherlands The Netherlands Down

  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example example
Accessible without login Plain text file license.txt Lic. license
Accessible without login Plain text file wrappedtext.doc Doc. documentation
Plain text file wrappedtext.php Class wrappedtext

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,791All time:2,038
 This week:0This week:1,456Up
 User Ratings  
 
 All time
Utility:20%StarStar
Consistency:35%StarStar
Documentation:70%StarStarStarStar
Examples:60%StarStarStarStar
Tests:-
Videos:-
Overall:26%StarStar
Rank:2416