将字符串截取为指定的单词数
StringHelper::truncateWords('This is a test sentance', 4, '...') //This is a test ...
单词为单位超出部分用..代替(解析html)
StringHelper::truncateWords('This is a test for a sentance', 5, '...',true) //This is a test for...