JS Replace characters with link?
<p>If I have a block of text inside a div like:</p>

<pre><code>&lt;div id='t1'&gt;
This is a great testing string.  Tomorrow grass is green.
&lt;/div&gt;
</code></pre>

<p>and I want to replace all instance of the letter "g" with a link to google, like </p>

<pre><code>&lt;a href='www.google.com'&gt;g&lt;/a&gt;
</code></pre>

<p>Is it possible to do this with just Javascript/jquery?</p>
