src/Helpers/Request/StringHelper.php
public function truncateWords($string, $count, $suffix = '...', $asHtml = false)
    {
        return $this->proxy(__FUNCTION__, [$string, $count, $suffix, $asHtml]);
    }
public function truncateWords($string, $count, $suffix = '...', $asHtml = false)
    {
        return $this->proxy(__FUNCTION__, [$string, $count, $suffix, $asHtml]);
    }
Truncates a string to the number of words specified.

@param string $string The string to truncate.
@param int $count How many words from original string to include into truncated string.
@param string $suffix String to append to the end of truncated string.
@param bool $asHtml Whether to treat the string being truncated as HTML and preserve proper HTML tags.
@return string the truncated string.
@see \Reaction\Helpers\StringHelper::truncateWords()