Remove unwanted characters from a string
<p>I want to remove the characters <code>[</code> and <code>]</code> inside a variable. How can I do this? My variable is something similar to this one:</p>

<pre><code>var str = "[this][is][a][string]";
</code></pre>

<p>Any suggestion is very much appreciated!</p>
