Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Highlight

Given a string representing HTML, Highlighter wraps text matching a string with <span/> elements that have a class of "qp-highlight" which you can style.

Usage example:

var body = document.body.innerHTML;
document.body.innerHTML = new Highlighter(body).highlight('text to search for');

About

Highlights text on a web page

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages