title: How to remove the Query String and Hash Values from URL Using JSOUP or Coldfusion?
body: <p><strong>Here is the example:</strong></p>
  
  <p>When I parse an HTML page. I am getting duplicate URL values like</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/tagged/java?sort=featured&amp;pageSize=50">https://stackoverflow.com/questions/tagged/java?sort=featured&amp;pageSize=50</a></li>
  <li><a href="https://stackoverflow.com/questions/tagged/java#comments">https://stackoverflow.com/questions/tagged/java#comments</a></li>
  <li><a href="https://stackoverflow.com/questions/tagged/java#comment212">https://stackoverflow.com/questions/tagged/java#comment212</a></li>
  </ul>
  
  <p>How to avoid this above duplicate values?</p>
  
  <p>I only need this URL <a href="https://stackoverflow.com/questions/tagged/java">https://stackoverflow.com/questions/tagged/java</a></p>