title: How can I extract hidden content from a remote web page using PHP?
body: <p>I want to read a website with php (file_get_contents?), which is hidden with &lt;span style='display:none;'&gt;. </p>
  
  <p>4 examples:</p>
  
  <ol>
  <li>U&lt;span style='display:none;'&gt;wsebv&lt;/span&gt;&lt;u&gt;&lt;/u&gt;rfahr</li>
  <li>Z&lt;span style='display:none;'&gt;e&lt;i&gt;&lt;/i&gt;i&lt;span&gt;&lt;/span&gt;nhv&lt;/span&gt;&lt;b&gt;&lt;/b&gt;öhrdorf</li>
  <li>B&lt;i&gt;&lt;/i&gt;a&lt;i&gt;&lt;/i&gt;b&lt;span&gt;&lt;/span&gt;e&lt;i&gt;&lt;/i&gt;n&lt;span style='display:none;'&gt;einhv&lt;/span&gt;&lt;u&gt;&lt;/u&gt;berg</li>
  <li>K&lt;span style='display:none;'&gt;s&lt;i&gt;&lt;/i&gt;d&lt;span style='display:none;'&gt;d&lt;span style='display:none;'&gt;b&lt;span style='display:none;'&gt;n&lt;span style='display:none;'&gt;v&lt;i&gt;&lt;/i&gt;b&lt;span style='display:none;'&gt;h&lt;i&gt;&lt;/i&gt;gawe&lt;/span&gt;&lt;u&gt;&lt;/u&gt;aoi&lt;/span&gt;&lt;b&gt;&lt;/b&gt;hvws&lt;/span&gt;&lt;b&gt;&lt;/b&gt;aoir&lt;/span&gt;&lt;b&gt;&lt;/b&gt;asud&lt;/span&gt;&lt;b&gt;&lt;/b&gt;asu&lt;/span&gt;&lt;b&gt;&lt;/b&gt;irchdorf/Kr.</li>
  </ol>
  
  <p>Results should be:</p>
  
  <ol>
  <li>Urfahr</li>
  <li>Zöhrdorf</li>
  <li>Babenberg</li>
  <li>Kirchdorf/Kr.</li>
  </ol>
  
  <p>Two possible approaches for solving the problem (but I don't know how to implement them):
  <br />A) Remove all span-tags with their content
  <br />B) Programatically read only VISIBLE content</p>
  
  <p>Many thanks in advance for your help!!!</p>