PHP Classes
elePHPant
Icontem

highlighting_skipphtml: Highlight words of text in HTML

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 (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2003-06-02 (12 years ago) RSS 2.0 feedStarStarStar 56%Total: 1,155 All time: 3,110 This week: 918Up
Version License Categories  
highlighting 1.0GNU General Publi...HTML, Text processing
Description Author  

This class can be used to highlight words in of text in HTML.

Matches in the html tags will be skipped.

Example:

ereg_replace('image','<b>image</b>','<img src="image.gif">image.gif');

will give you:

<img src="<b>image</b>.gif"><b>image</b>.gif

using this class you will get:

<img src="image.gif"><b>image</b>.gif

Picture of Bas Jobsen
Name: Bas Jobsen <contact>
Classes: 9 packages by
Country: The Netherlands The Netherlands
Age: 39
All time rank: 2428 in The Netherlands The Netherlands
Week rank: 919 Down25 in The Netherlands The Netherlands Down

  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example example
Plain text file highlighting_skipphtml.php Class classe
Accessible without login Plain text file license.txt Lic. license

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,155All time:3,110
 This week:0This week:918Up
 User Ratings  
 
 All time
Utility:83%StarStarStarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:56%StarStarStar
Rank:1192