title: Html 2 Text - Remove "hidden" Text
body: <p>I am currently looking for ways to read the visible text of a website and store it into plaintext string using Java. </p>
  
  <p>In other words, I'd like to convert something like this: </p>
  
  <p><code>Hello &lt;span style="display: none"&gt;stupid&lt;/span&gt; World</code> into "Hello World"</p>
  
  <p>or something like </p>
  
  <p><code>&lt;span&gt;Un&lt;/span&gt;friendly</code> into "Unfriendly" (and not something like "Un friendly")</p>
  
  <p>or</p>
  
  <pre><code>Hello
  
  World
  </code></pre>
  
  <p>into "Hello World" (as new lines are ignored in HTML) </p>
  
  <p>Do you know of any lib capable of assisting in this task? </p>
  
  <p>Cheers,</p>
  
  <p>Matthias</p>