grab text with [quote]foo text[/quote] and replace it to <div class="quote-text">foo text</div> with JS
<p>Hey, I have some text that is formatted like this:</p>

<pre><code>[quote]foo text[/quote]
</code></pre>

<p>and I want to change it to this:</p>

<pre><code>&lt;div class="quote-text"&gt;foo text&lt;/div&gt;
</code></pre>

<p>How can I do this with JS?</p>

<p>I'm using jQuery.</p>
