Forum Replies Created

Viewing 1 replies (of 1 total)
  • Forum: Plugins
    In reply to: Word count plugin?

    What you need to do is to substitute out anything between < and > first, and then do the split and word count:

    return(count(preg_split(‘/( |\n)/’, preg_replace(‘/<+?>/’, ”, trim($this->text) ))));

    BUT, having checked what $this->text actually produces, I don’t see any bracketed code anyway. So I’m not sure this is necessary.

Viewing 1 replies (of 1 total)