Login   Register  
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 (11 years ago) RSS 2.0 feedStarStarStar 56%Total: 1,154 All time: 3,019 This week: 1,484Up
Version License Categories  
highlighting 1.0GNU General Public Lice...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: 37
All time rank: 2326 in The Netherlands The Netherlands
Week rank: 777 Down18 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,154All time:3,019
 This week:0This week:1,484Up
 User Ratings  
 
 All time
Utility:83%StarStarStarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:56%StarStarStar
Rank:1111