Code: Select all
$html.='<dt>Word count:</dt><dd>'.str_word_count(strip_tags($this->item->fulltext)).'</dd>';
Code: Select all
$wcount = preg_replace('#<[^>]+>#', ' ', $this->item->fulltext);
$wcount = str_replace(' ',"",$wcount);
$html.='<dt>Word count:</dt><dd>'.str_word_count($wcount).'</dd>';