title: Parse value from HTML snippet using PHP
body: <p>I have the following html :</p>
  
  <pre><code>&lt;span class="orig_line"&gt;
  &lt;a class="original" href="http://nucleify.org/"&gt;Nucleify &lt;i class="externalLink icon-circle-arrow-right"&gt;&lt;/i&gt;&lt;/a&gt;
  &amp;middot;
  
  by &lt;span class="author"&gt;Random Person&lt;/span&gt;
  &amp;middot;
  October 1, 2013
  &lt;/span&gt;
  </code></pre>
  
  <p>I am using Simple HTML DOM parser class which is available on sourceforge, here is sample code i am using: </p>
  
  <pre><code>$newoutput = str_get_html($htmlCode);
  $html  = new simple_html_dom();
  $html-&gt;load($newoutput);
  foreach($html-&gt;find('div#titlebar') as $date){
  $n['date'] = $date-&gt;find('span.orig_line',0)-&gt;plaintext);
  print $n['date'];
  }
  </code></pre>
  
  <p>As i just want the <code>October 1, 2013</code> date text from the span (.orig_line) stripping out any further html tags inside it, and just only the text, i cannot find a way around it...</p>
  
  <p>PS: I want to stick to SimpleHTMLDom class only, and no phpQuery or DOMParsers.</p>
  
  <p>Thank you.</p>