PHP Classes

Safe keyword highlight: Text keyword highlight within HTML tags

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 44%Total: 2,698 All time: 1,410 This week: 37Up
Version License Categories
safehighlight 1.0GNU General Publi...HTML, Text processing
Description 

Author

This class highlight text that matches a given search string (keyword) in HTML based documents, without affecting any HTML tags.

This may be useful for processing text and highlight against a glossary of terms for example, or page excerpts returned from search results (like Google).

Picture of tony
Name: tony <contact>
Classes: 2 packages by
Country: Bulgaria Bulgaria
Age: 44
All time rank: 7324 in Bulgaria Bulgaria
Week rank: 195 Up3 in Bulgaria Bulgaria Up

  Files folder image Files (2)  
File Role Description
Accessible without login Plain text file demo.php Example Example that shows an HTML text with and without highlighting
Plain text file highlighter.class.php Class advanced highlighter class

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:2,698
This week:0
All time:1,410
This week:37Up
 User Ratings  
 
 All time
Utility:63%StarStarStarStar
Consistency:61%StarStarStarStar
Documentation:-
Examples:70%StarStarStarStar
Tests:-
Videos:-
Overall:44%StarStarStar
Rank:3416