PHP Classes

highlighting_skipphtml: Highlight words of text in HTML

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 56%Total: 1,162 This week: 1All time: 3,259 This week: 560Up
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: 47
All time rank: 2548 in The Netherlands The Netherlands
Week rank: 411 Down9 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,162
This week:1
All time:3,259
This week:560Up
 User Ratings  
 
 All time
Utility:83%StarStarStarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:56%StarStarStar
Rank:1737