I have a long text, and I have 5 words given.
I'd like to be able to parse the text and highlight those 5 words with 5 different styles.
I'm working with php and js/jquery.
what's the best practice to accomplish this?
is enough a str_replace('word','<span style1 >word</span>', $text)?
NOTE: what about when the word is uppercase or capitalized?