title: Keep carriage returns in text from <pre> after parsing
body: <p>I am using the Simple html dom (<a href="http://simplehtmldom.sourceforge.net/" rel="nofollow">http://simplehtmldom.sourceforge.net/</a>) library for this function.</p>
  
  <p>I would like to parse the contents of the pre tag of a website, for which I am using this code:</p>
  
  <pre><code>    &lt;?php include '/libraries/simple_html_dom.php' ?&gt;
      &lt;?php
      // Create DOM from URL or file
      $html = file_get_html('testing.html');
  
       // Find the Text
      foreach($html-&gt;find('pre') as $element) 
             echo '&lt;p&gt;' . $element . '&lt;p&gt;';      
      ?&gt;
  </code></pre>
  
  <p>This is the contents of the file 'testing.html':</p>
  
  <pre><code>    &lt;html&gt;
      &lt;head&gt;
      &lt;/head&gt;
      &lt;body bgcolor="#FFFFFF"&gt;
      &lt;pre&gt;
      am.o                 V      1 1 PRES ACTIVE  IND 1 S    
      amo, amare, amavi, amatus  V   [XXXAO]  
      love, like; fall in love with; be fond of; have a tendency to;
      am.as                N      1 1 ACC P F                 
      ama, amae  N  F   [XXXDO]    lesser
      bucket; water bucket; (esp. fireman's bucket);
      am.as                V      1 1 PRES ACTIVE  IND 2 S    
      amo, amare, amavi, amatus  V   [XXXAO]  
      love, like; fall in love with; be fond of; have a tendency to;
      &lt;/pre&gt;
      &lt;/body&gt;
      &lt;/html&gt;
  </code></pre>
  
  <p>As you can see the pre text has carridge returns, which I want to preserve in the output. At the moment this is the output of the parser:</p>
  
  <pre><code>  am.o                 V      1 1 PRES ACTIVE  IND 1 S      amo, amare, amavi, amatus  V   [XXXAO]    love, like; fall in love with; be fond of; have a tendency to;  am.as                N      1 1 ACC P F                   ama, amae  N  F   [XXXDO]    lesser  bucket; water bucket; (esp. fireman's bucket);  am.as                V      1 1 PRES ACTIVE  IND 2 S      amo, amare, amavi, amatus  V   [XXXAO]    love, like; fall in love with; be fond of; have a tendency to;  
  </code></pre>
  
  <p>How would I do this?</p>