title: simple html dom php and new lines in plaintext
body: <p>When I'm parsing a site, and print out the plaintext, I get a lot of newline characters in the printout that can't be removed via a str_replace.</p>
  
  <p>For example, if I parse eBay and look for the end time, </p>
  
  <pre><code>$ebayEndTime = $this-&gt;html_simple_dom-&gt;find( 'span[class=vi-tm-left]', 0 )-&gt;plaintext;
  </code></pre>
  
  <p>In the print out, it looks like this:</p>
  
  <blockquote>
    <p>\t\t\t\t\t(Mar 19, 2013\n\t\t\t\t\t15:10:11 PDT)\n\t\t\t</p>
  </blockquote>
  
  <p>Trying to remove it has no effect:</p>
  
  <pre><code>$search = array('\n', '\t', '\r');
  error_log("end time:" .  str_replace( $search, " ", $ebayEndTime));
  </code></pre>
  
  <p>Still results in:</p>
  
  <blockquote>
    <p>\t\t\t\t\t(Mar 19, 2013\n\t\t\t\t\t15:10:11 PDT)\n\t\t\t</p>
  </blockquote>
  
  <p>What do I need to do to remove the newlines/tabs? I've even tried this to be thorough:</p>
  
  <pre><code>$search = array('\n', '\t', '\r', '\\n', '\\t', '\\r', '\\\\n', '\\\t', '\\\r', '\\\\n', '\\\\t', '\\\\r');
  </code></pre>
  
  <p>As I know that Java requires that the escape character be escaped, but as this prints in the log file, is it printing it out as using the html code for '\'?</p>