I would like to replace some keywords to HTML elements in a textarea with javascript. Is there any way to replace every 2nd string that has been found?
Just for an example what I mean is: if there are 6 $ signs in the string, the first, third, and fifth would be replaced to HTML tag and the rest to </strong> HTML tag.