Hi all
Basically I am trying to create a "word replacer" in javascript
I have a string (varying piece of text, X amount of characters long.
I also have a comma seperated array that I have split - my main problem is that I cannot figure out the best way to do a find and replace, matching any of the words in my array to anything in the text string I have.
Anyone have any ideas - or even a working model of what I am looking for?
Basically I am trying to create a "word replacer" in javascript
I have a string (varying piece of text, X amount of characters long.
I also have a comma seperated array that I have split - my main problem is that I cannot figure out the best way to do a find and replace, matching any of the words in my array to anything in the text string I have.
Anyone have any ideas - or even a working model of what I am looking for?