I have a long string, and a list of other strings, which I need to mark in the long string.
Say we have abcdefghijk and the strings I need to mark are ghi and abc.
What is the simplest way to do it in Javascript and CSS? I thought about using the exec() method that will return the starting index of the string in the long string.
Then, I'd have the starting index and the size of the string. So, I could find it in the long string. How could I highlight it? Maybe using CSS?