Surround.js: quickly search through text and wrap results in custom tags

https://github.com/wellsjo/surround.js
by wellsjohnston • 12 years ago
1 0 12 years ago

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.

Related Stories

Loading related stories...

Source preview

github.com