surround.js provides a set of utility functions for searching through large strings of text and wrapping a search term in custom tags.<p>Let's say you want to highlight or make button links out of all instances of a word in a huge article. surround.js makes that very easy.
Surround.js: quickly search through text and wrap results in custom tags | Heykuki News