text-highlighter
Highlight text in DOM.
Installation
$ npm install text-highlighter --save
Usage
We 💓 TypeScript!
Support Zenkaku & Hankaku
before We 💓 TypeScript! after We 💓 TypeScript!
Thanks
- http://stackoverflow.com/questions/10416643/highlight-words-in-html-using-regex-javascript-almost-there
- http://jquery.nj-clucker.com/change-double-byte-to-half-width/
License
MIT