title: Javascript remove all '|' in a string
body: <p>I've got text from a title that can contain one or more <code>|</code> in it I'd like to use javascript to remove all instances of it.</p>
  
  <p>I've tried</p>
  
  <pre><code>$('title').text().replace(/ |g /, ' ');
  "What’s New On Netflix This Weekend: March 3–5 | Lifestyle"
  </code></pre>