PHP Classes
elePHPant
Icontem

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    
Last Updated Ratings Unique User Downloads Download Rankings
2003-06-02 (13 years ago) RSS 2.0 feedStarStarStar 56%Total: 1,156 All time: 3,149 This week: 1,053Up
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

  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,156
This week:0
All time:3,149
This week:1,053Up
 User Ratings  
 
 All time
Utility:83%StarStarStarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:56%StarStarStar
Rank:1471