https://github.com/herm71/javascript-split
Short bit of javascript that will look for certain words within an array and wrap them in <span> elements
https://github.com/herm71/javascript-split
Last synced: 12 months ago
JSON representation
Short bit of javascript that will look for certain words within an array and wrap them in <span> elements
- Host: GitHub
- URL: https://github.com/herm71/javascript-split
- Owner: Herm71
- Created: 2018-02-23T16:23:42.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-01T20:32:22.000Z (over 8 years ago)
- Last Synced: 2025-03-23T07:32:05.513Z (about 1 year ago)
- Language: HTML
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# JavaScript Split
Short piece of [JavaScript](https://www.javascript.com/) that will grab a string wrapped in HTML, split it into an array, and compare the results against a second array containing certain words. If there is a match, the word in the first array will be wrapped in `` elements.
See:
https://codepen.io/Herm71/pen/xYawXB
https://herm71.github.io/javascript-split/