PHP Classes

highlighting_skipphtml: Highlight words of text in HTML

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 56%Total: 1,162 All time: 3,263 This week: 488Up
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 (3)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,162
This week:0
All time:3,263
This week:488Up
 User Ratings  
 
 All time
Utility:83%StarStarStarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:56%StarStarStar
Rank:1786