I have the following html :
<span class="orig_line">
<a class="original" href="http://nucleify.org/">Nucleify <i class="externalLink icon-circle-arrow-right"></i></a>
·
by <span class="author">Random Person</span>
·
October 1, 2013
</span>
I am using Simple HTML DOM parser class which is available on sourceforge, here is sample code i am using:
$newoutput = str_get_html($htmlCode);
$html = new simple_html_dom();
$html->load($newoutput);
foreach($html->find('div#titlebar') as $date){
$n['date'] = $date->find('span.orig_line',0)->plaintext);
print $n['date'];
}
As i just want the October 1, 2013 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...
PS: I want to stick to SimpleHTMLDom class only, and no phpQuery or DOMParsers.
Thank you.