title: Remove '|' special character from a string
body: <p>My question may find simple, But I am not getting it right. How could I remove "|" from a string so far I have used the following but Its not working</p>
  
  <pre><code>&lt;div class="inner"&gt; | ABCD || &lt;/div&gt;
  var txt=divVar.html();
  </code></pre>
  
  <p>1) <code>txt=txt.remove("|");</code></p>
  
  <p>2)<code>txt=txt.replace (/|/g, '');</code></p>