Created
August 28, 2019 05:02
-
-
Save aibolik/2bc2c49b638c649e53767fa024c05040 to your computer and use it in GitHub Desktop.
Wrap a term in string with some other string(like HTML tag `strong`)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let title = title.replace(new RegExp(search, 'ig'), `<strong>$&</strong>`); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment