title: javascript delete all occurrences of a char in a string
body: <p>I want to delete all characters like <code>[</code> or <code>]</code> or <code>&amp;</code> in a string i.E. :
  "[foo] &amp; bar" -> "foo bar"</p>
  
  <p>I don't want to call replace 3 times, is there an easier way than just coding:</p>
  
  <p><code>var s="[foo] &amp; bar";</code></p>
  
  <p><code>s=s.replace('[','');</code></p>
  
  <p><code>s=s.replace(']','');</code></p>
  
  <p><code>s=s.replace('&amp;','');</code></p>