title: Remove what is after hash
body: <p>I have urls like:</p>
  
  <pre><code>http://stackoverflow.com#tab1
  http://stackoverflow.com/something#tab1#tab3
  http://stackoverflow.com/links.html#tab2#tab1#tab4
  </code></pre>
  
  <p>How can I remove everything after the hash sign, so I can keep a simple URL like:</p>
  
  <pre><code>http://stackoverflow.com
  http://stackoverflow.com/something
  http://stackoverflow.com/links.html
  </code></pre>
  
  <p>Thanks in advance</p>