Search For Words, Replace With Links
<p>I have an  array like this</p>

<pre><code>var words = [
    {
     word: 'Something',
     link: 'http://www.something.com'
    },
    {
     word: 'Something Else',
     link: 'http://www.something.com/else'
    }
];
</code></pre>

<p>I want it to search the page for word and replace it with link. Is there an efficent way of doing this? It seems it may be CPU hungry.</p>

<p>Sorry should have exlained more...</p>

<p>It would search each element with the class .message for instance. Then find all of the words within that.</p>

<p>There would also be a few hundred within this array</p>
